Your message dated Wed, 11 Nov 2026 18:04:54 +0000
with message-id <[email protected]>
and subject line Bug#1153297: fixed in sympa 6.2.76~dfsg-1.2
has caused the Debian Bug report #1153297,
regarding sympa: WWSympa: arc: Deleted or raw message files could be fetched
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1153297: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153297
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sympa
Severity: grave
Tags: fixed-upstream security patch

Hello,

A security vulnerability has been identified in WWSympa before version 6.2.80

Due to a flaw in how message file paths are handled in the archive
component (arc), unauthenticated or unauthorized users could
potentially fetch deleted or raw message files that should not be accessible.

This issue has been fixed upstream in 6.2.80 via:
https://github.com/sympa-community/sympa/pull/2068

There is no CVE identifier assigned yet, but we have been informed of
active exploitation / real-world attacks using this vulnerability.

This issue affects all current versions in Debian.

We have backported the upstream patch for Debian versions 10, 11, 12,
and 13. The corresponding patches are attached to this report.

Thanks for maintaining Sympa in Debian!

Regards,
-- 
Grégory Colpart - Gérant Evolix - Clé OpenPGP : 0x44975278B8612B5D
Evolix - Hébergement et Infogérance Open Source
Marseille (37 rue Guibal, Pôle Média, 13003) / Paris / Montréal
https://evolix.com | mastodon.evolix.org/@evolix | blog.evolix.com
--- a/usr/share/sympa/lib/Sympa/Archive.pm
+++ b/usr/share/sympa/lib/Sympa/Archive.pm
@@ -212,8 +212,15 @@
     return undef unless $self->{arc_directory};
     return undef unless $options{file};
 
+    # Omit arctxt etc.
+    return undef
+        if grep { 0 == index $_, '.' or $_ eq 'arctxt' or $_ eq 'deleted' }
+        split m{/+}, $options{file};
+    # Remove extra slashes.
+    my $file = join '/', grep {length} split m{/+}, $options{file};
+
     my $handle =
-        IO::File->new($self->{arc_directory} . '/' . $options{file}, '<');
+        IO::File->new($self->{arc_directory} . '/' . $file, '<');
     return undef unless $handle;
 
     my $metadata = {};    # May be empty.
@@ -235,7 +242,7 @@
     }
     seek $handle, 0, 0;
     $metadata->{html_content} = do { local $RS; <$handle> };
-    $metadata->{filename} = $options{file};
+    $metadata->{filename} = $file;
 
     return $metadata;
 }
--- a/usr/lib/cgi-bin/sympa/wwsympa.fcgi
+++ b/usr/lib/cgi-bin/sympa/wwsympa.fcgi
+++ /usr/lib/cgi-bin/sympa/wwsympa.fcgi 2026-11-06 23:52:31.709276819 +0100
@@ -997,13 +997,6 @@
     'role' => 'member|editor|owner',
 );
 
-## Regexp applied on incoming parameters (%in)
-## This regular expression defines forbidden expressions applied on all
-## incoming parameters
-## Note that you can use the ^ and $ expressions to match beginning and ending
-## of expressions
-our %in_negative_regexp = ('arc_file' => '^(arctxt|\.)');
-
 # No longer used as of 6.2.19b.
 #my %filtering;
 
@@ -2158,13 +2151,6 @@
             $regexp = $in_regexp{'*'};
         }
 
-        my $negative_regexp;
-        if ($pname =~ /^additional_field/) {
-            $negative_regexp = $in_negative_regexp{'additional_field'};
-        } elsif ($in_negative_regexp{$pname}) {
-            $negative_regexp = $in_negative_regexp{$pname};
-        }
-
         # If we are editing an HTML file in the shared, allow HTML but prevent
         # XSS.
         if (   $pname eq 'content'
@@ -2182,9 +2168,7 @@
             }
         }
         foreach my $one_p (split /\0/, $in{$p}) {
-            if ($one_p !~ /^$regexp$/s
-                || (defined $negative_regexp && $one_p =~ /$negative_regexp/s)
-            ) {
+            unless ($one_p =~ /\A$regexp\z/s) {
                 Sympa::WWW::Report::reject_report_web('user', 'syntax_errors',
                     {p_name => $p},
                     '', '');
@@ -8731,16 +8715,15 @@
         $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     } else {
         $html_metadata = $archive->html_fetch(file => $in{'arc_file'});
+        $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     }
     unless ($html_metadata) {
+        print "Status: 404 Not Found\n";
         wwslog('err', 'Unable to read HTML message <%s>', $in{'arc_file'});
         Sympa::WWW::Report::reject_report_web(
             'user',
-            'arc_not_found',    #FIXME: Not implemented.
-            {   'arc_file' => $in{'arc_file'},
-                'month'    => $in{'month'},
-                'listname' => $param->{'list'}
-            },
+            'no_required_file',
+            {},
             $param->{'action'},
             $list,
             $param->{'user'}{'email'},
--- a/usr/share/sympa/lib/Sympa/Archive.pm
+++ b/usr/share/sympa/lib/Sympa/Archive.pm
@@ -215,7 +215,14 @@
     return undef unless $self->{arc_directory};
     return undef unless $options{file};
 
-    my $html_file = $self->{arc_directory} . '/' . $options{file};
+    # Omit arctxt etc.
+    return undef
+        if grep { 0 == index $_, '.' or $_ eq 'arctxt' or $_ eq 'deleted' }
+        split m{/+}, $options{file};
+    # Remove extra slashes.
+    my $file = join '/', grep {length} split m{/+}, $options{file};
+
+    my $html_file = $self->{arc_directory} . '/' . $file;
     my $handle = IO::File->new($html_file, '<');
 
     unless ($handle) {
@@ -245,7 +252,7 @@
     }
     seek $handle, 0, 0;
     $metadata->{html_content} = do { local $RS; <$handle> };
-    $metadata->{filename} = $options{file};
+    $metadata->{filename} = $file;
 
     return $metadata;
 }
--- a/usr/lib/cgi-bin/sympa/wwsympa.fcgi
+++ b/usr/lib/cgi-bin/sympa/wwsympa.fcgi
@@ -997,13 +997,6 @@
     'role' => 'member|editor|owner',
 );
 
-## Regexp applied on incoming parameters (%in)
-## This regular expression defines forbidden expressions applied on all
-## incoming parameters
-## Note that you can use the ^ and $ expressions to match beginning and ending
-## of expressions
-our %in_negative_regexp = ('arc_file' => '^(arctxt|\.)');
-
 # No longer used as of 6.2.19b.
 #my %filtering;
 
@@ -2132,13 +2125,6 @@
             $regexp = $in_regexp{'*'};
         }
 
-        my $negative_regexp;
-        if ($pname =~ /^additional_field/) {
-            $negative_regexp = $in_negative_regexp{'additional_field'};
-        } elsif ($in_negative_regexp{$pname}) {
-            $negative_regexp = $in_negative_regexp{$pname};
-        }
-
         # If we are editing an HTML file in the shared, allow HTML but prevent
         # XSS.
         if (   $pname eq 'content'
@@ -2156,9 +2142,8 @@
             }
         }
         foreach my $one_p (split /\0/, $in{$p}) {
-            if ($one_p !~ /^$regexp$/s
-                || (defined $negative_regexp && $one_p =~ /$negative_regexp/s)
-            ) {
+            unless ($one_p =~ /\A$regexp\z/s) {
+
                 Sympa::WWW::Report::reject_report_web('user', 'syntax_errors',
                     {p_name => $p},
                     '', '');
@@ -8741,16 +8726,15 @@
         $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     } else {
         $html_metadata = $archive->html_fetch(file => $in{'arc_file'});
+        $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     }
     unless ($html_metadata) {
+        print "Status: 404 Not Found\n";
         wwslog('err', 'Unable to read HTML message <%s>', $in{'arc_file'});
         Sympa::WWW::Report::reject_report_web(
             'user',
-            'arc_not_found',    #FIXME: Not implemented.
-            {   'arc_file' => $in{'arc_file'},
-                'month'    => $in{'month'},
-                'listname' => $param->{'list'}
-            },
+            'no_required_file',
+            {},
             $param->{'action'},
             $list,
             $param->{'user'}{'email'},
--- a/usr/share/sympa/lib/Sympa/Archive.pm
+++ b/usr/share/sympa/lib/Sympa/Archive.pm
@@ -214,7 +214,14 @@
     return undef unless $self->{arc_directory};
     return undef unless $options{file};
 
-    my $html_file = $self->{arc_directory} . '/' . $options{file};
+    # Omit arctxt etc.
+    return undef
+        if grep { 0 == index $_, '.' or $_ eq 'arctxt' or $_ eq 'deleted' }
+        split m{/+}, $options{file};
+    # Remove extra slashes.
+    my $file = join '/', grep {length} split m{/+}, $options{file};
+
+    my $html_file = $self->{arc_directory} . '/' . $file;
     my $handle = IO::File->new($html_file, '<');
 
     unless ($handle) {
@@ -244,7 +251,7 @@
     }
     seek $handle, 0, 0;
     $metadata->{html_content} = do { local $RS; <$handle> };
-    $metadata->{filename} = $options{file};
+    $metadata->{filename} = $file;
 
     return $metadata;
 }
--- a/usr/lib/cgi-bin/sympa/wwsympa.fcgi
+++ b/usr/lib/cgi-bin/sympa/wwsympa.fcgi
@@ -1003,13 +1003,6 @@
     'role' => 'member|editor|owner',
 );
 
-## Regexp applied on incoming parameters (%in)
-## This regular expression defines forbidden expressions applied on all
-## incoming parameters
-## Note that you can use the ^ and $ expressions to match beginning and ending
-## of expressions
-our %in_negative_regexp = ('arc_file' => '^(arctxt|\.)');
-
 # No longer used as of 6.2.19b.
 #my %filtering;
 
@@ -2089,13 +2082,6 @@
             $regexp = $in_regexp{'*'};
         }
 
-        my $negative_regexp;
-        if ($pname =~ /^additional_field/) {
-            $negative_regexp = $in_negative_regexp{'additional_field'};
-        } elsif ($in_negative_regexp{$pname}) {
-            $negative_regexp = $in_negative_regexp{$pname};
-        }
-
         # If we are editing an HTML file in the shared, allow HTML but prevent
         # XSS.
         if (   $pname eq 'content'
@@ -2113,9 +2099,7 @@
             }
         }
         foreach my $one_p (split /\0/, $in{$p}) {
-            if ($one_p !~ /^$regexp$/s
-                || (defined $negative_regexp && $one_p =~ /$negative_regexp/s)
-            ) {
+            unless ($one_p =~ /\A$regexp\z/s) {
                 add_stash('user', 'syntax_errors', {p_name => $p});
                 wwslog(
                     'err',
@@ -8486,16 +8470,12 @@
         $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     } else {
         $html_metadata = $archive->html_fetch(file => $in{'arc_file'});
+        $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     }
     unless ($html_metadata) {
+        print "Status: 404 Not Found\n";
         wwslog('err', 'Unable to read HTML message <%s>', $in{'arc_file'});
-        add_stash(
-            'user',
-            'month_not_found',
-            {   'arc_file' => $in{'arc_file'},
-                'month'    => $in{'month'},
-            }
-        );
+        add_stash('user', 'no_required_file');
         return undef;
     }

--- a/usr/share/sympa/lib/Sympa/Archive.pm
+++ b/usr/share/sympa/lib/Sympa/Archive.pm
@@ -214,7 +214,14 @@
     return undef unless $self->{arc_directory};
     return undef unless $options{file};
 
-    my $html_file = $self->{arc_directory} . '/' . $options{file};
+    # Omit arctxt etc.
+    return undef
+        if grep { 0 == index $_, '.' or $_ eq 'arctxt' or $_ eq 'deleted' }
+        split m{/+}, $options{file};
+    # Remove extra slashes.
+    my $file = join '/', grep {length} split m{/+}, $options{file};
+
+    my $html_file = $self->{arc_directory} . '/' . $file;
     my $handle = IO::File->new($html_file, '<');
 
     unless ($handle) {
@@ -244,7 +251,7 @@
     }
     seek $handle, 0, 0;
     $metadata->{html_content} = do { local $RS; <$handle> };
-    $metadata->{filename} = $options{file};
+    $metadata->{filename} = $file;
 
     return $metadata;
 }
--- a/usr/lib/cgi-bin/sympa/wwsympa.fcgi
+++ b/usr/lib/cgi-bin/sympa/wwsympa.fcgi
@@ -955,13 +955,6 @@
     'role' => 'member|editor|owner',
 );
 
-## Regexp applied on incoming parameters (%in)
-## This regular expression defines forbidden expressions applied on all
-## incoming parameters
-## Note that you can use the ^ and $ expressions to match beginning and ending
-## of expressions
-our %in_negative_regexp = ('arc_file' => '^(arctxt|\.)');
-
 # No longer used as of 6.2.19b.
 #my %filtering;
 
@@ -2031,13 +2024,6 @@
             $regexp = $in_regexp{'*'};
         }
 
-        my $negative_regexp;
-        if ($pname =~ /^additional_field/) {
-            $negative_regexp = $in_negative_regexp{'additional_field'};
-        } elsif ($in_negative_regexp{$pname}) {
-            $negative_regexp = $in_negative_regexp{$pname};
-        }
-
         # If we are editing an HTML file in the shared, allow HTML but prevent
         # XSS.
         if (   $pname eq 'content'
@@ -2055,9 +2041,7 @@
             }
         }
         foreach my $one_p (split /\0/, $in{$p}) {
-            if ($one_p !~ /^$regexp$/s
-                || (defined $negative_regexp && $one_p =~ /$negative_regexp/s)
-            ) {
+            unless ($one_p =~ /\A$regexp\z/s) {
                 add_stash('user', 'syntax_errors', {p_name => $p});
                 wwslog(
                     'err',
@@ -8368,16 +8352,12 @@
         $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     } else {
         $html_metadata = $archive->html_fetch(file => $in{'arc_file'});
+        $in{'arc_file'} = $html_metadata->{filename} if $html_metadata;
     }
     unless ($html_metadata) {
+        print "Status: 404 Not Found\n";
         wwslog('err', 'Unable to read HTML message <%s>', $in{'arc_file'});
-        add_stash(
-            'user',
-            'month_not_found',
-            {   'arc_file' => $in{'arc_file'},
-                'month'    => $in{'month'},
-            }
-        );
+        add_stash('user', 'no_required_file');
         return undef;
     }
 


--- End Message ---
--- Begin Message ---
Source: sympa
Source-Version: 6.2.76~dfsg-1.2
Done: Salvatore Bonaccorso <[email protected]>

We believe that the bug you reported is fixed in the latest version of
sympa, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Salvatore Bonaccorso <[email protected]> (supplier of updated sympa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 09 Nov 2026 17:04:32 +0100
Source: sympa
Architecture: source
Version: 6.2.76~dfsg-1.2
Distribution: unstable
Urgency: medium
Maintainer: Debian Sympa team <[email protected]>
Changed-By: Salvatore Bonaccorso <[email protected]>
Closes: 1153297
Changes:
 sympa (6.2.76~dfsg-1.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * WWSympa: arc: Deleted or raw message files could be fetched
     (Closes: #1153297)
Checksums-Sha1:
 6d21fd2022a2e80670aeaaff403664b7e9a25af3 2728 sympa_6.2.76~dfsg-1.2.dsc
 66293dfb9ab752d6d0904eac4185c52129188293 170648 
sympa_6.2.76~dfsg-1.2.debian.tar.xz
 4c9739a9e444b3ded89d2840b64c2613ce45453a 7859 
sympa_6.2.76~dfsg-1.2_source.buildinfo
Checksums-Sha256:
 c0a27f9eeed66794e445bfd16cd116008ce9698330d7d54b655a6935f0bc1408 2728 
sympa_6.2.76~dfsg-1.2.dsc
 2e90976d2113c164a13bea6bb63053aab99b29de934a5161e9a8d451c498d13b 170648 
sympa_6.2.76~dfsg-1.2.debian.tar.xz
 aa19f72b12421eb211a83f8b30d628e940612de8e53284c27d40ce90d3b7e159 7859 
sympa_6.2.76~dfsg-1.2_source.buildinfo
Files:
 c1b21ad9220c7493629d952e0d1bea05 2728 mail optional sympa_6.2.76~dfsg-1.2.dsc
 417d09597c6aa1d56117de9d9e0160e4 170648 mail optional 
sympa_6.2.76~dfsg-1.2.debian.tar.xz
 19162d6cd4c79c5117ca92f9652ccd12 7859 mail optional 
sympa_6.2.76~dfsg-1.2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKmBAEBCgCQFiEERkRAmAjBceBVMd3uBUy48xNDz0QFAmryAg5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDQ2
NDQ0MDk4MDhDMTcxRTA1NTMxRERFRTA1NENCOEYzMTM0M0NGNDQSHGNhcm5pbEBk
ZWJpYW4ub3JnAAoJEAVMuPMTQ89E7rMP/iOXZJFWoEqYu6/Ko/KPPYqqnFtZmgEr
oK0dO0+lTK8viFDO89+lXphI8Xdy74CBwhvHKDpOVdJlpztJGeM1IG1BCLz5ytcQ
TjGYKMDTgFdYddA+ObnKtI96k36becAM04nkbjAaKY5vXldXprfPiAKkZp/oPJ0T
HYTGO6FCBEOzTRGNkCbQtMytF6YGwPDv3gs9UFhQFttdxQQtO1/6AXKoHreRZnkG
ZDnoncMQOwPM8Cl6NjZQPcsg5ymbinBXowhvYPUTs81FQCjyZ1bTD/h9g+SHXmFZ
+PuEVz/HqufZPebsGY0C1swi3ZMd6cpGLYK22iBFtCOgjN9p1elfYILX/Dhghpel
D9Jrrnrx9Y/abW/cdh6ejOmZiCvSjP5gyRCKEtzKnISectW3pAocynCrBHkigrbB
u0MZ2cnpjsXiqFF359/SokIB0rIpnhSBwN9ScUlSdJlehYfkjKI7kGNzbvv70wsH
NmB12dA0SlLD0sNVLQR1sCPOynD8OJLm175XFPoXd+Crx9DYnQ/r4icQ3kxA0S5e
kKu+81m/1Ri42/RYaWkTNgLvZGH2SKgwu9KmMEKQNDBGk3z2ENfyP15LAjz6Lnys
XrKd/5VuscYYe6tBP2Oddc0gB1JvduOsTYyZvqouAEaqufC1g28rSckfkpIHhzAY
yTC3kPyP/9pl
=jSG4
-----END PGP SIGNATURE-----

Attachment: pgpnzy1Qn3hOH.pgp
Description: PGP signature


--- End Message ---

Reply via email to