Your message dated Fri, 13 Nov 2026 16:32:45 +0000
with message-id <[email protected]>
and subject line Bug#1153297: fixed in sympa 6.2.76~dfsg-1+deb13u1
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+deb13u1
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:11:03 +0100
Source: sympa
Architecture: source
Version: 6.2.76~dfsg-1+deb13u1
Distribution: trixie-security
Urgency: high
Maintainer: Debian Sympa team <[email protected]>
Changed-By: Salvatore Bonaccorso <[email protected]>
Closes: 1153297
Changes:
 sympa (6.2.76~dfsg-1+deb13u1) trixie-security; urgency=high
 .
   * Non-maintainer upload by the Security Team.
   * WWSympa: arc: Deleted or raw message files could be fetched
     (Closes: #1153297)
Checksums-Sha1:
 0172dfa635fce42145bb30e73c8ce77e1fedc220 2752 sympa_6.2.76~dfsg-1+deb13u1.dsc
 d330f38cce051c3748211530e58617ec692297b3 3864188 sympa_6.2.76~dfsg.orig.tar.xz
 f9b458a27d2d05f077ea83d491d4e2dc25c134c1 165432 
sympa_6.2.76~dfsg-1+deb13u1.debian.tar.xz
 9cd2263fd6b45ee454855013a039db53fb6c0aa1 7883 
sympa_6.2.76~dfsg-1+deb13u1_source.buildinfo
Checksums-Sha256:
 121f6e6b4b01620ffe67dd5e217666c5a223af10dfb77be98e1ca66bd53f9f50 2752 
sympa_6.2.76~dfsg-1+deb13u1.dsc
 fcce68331f24cf9f8ec316b479b7fc9303759266be71bcec63545f9786df57ce 3864188 
sympa_6.2.76~dfsg.orig.tar.xz
 7f9964a3f29f53a2a547f4a8b6d49a3b4d7cb3ffc79c8cbdd4b275f3010e564d 165432 
sympa_6.2.76~dfsg-1+deb13u1.debian.tar.xz
 849019eb7c14f91e3c50ac4e1d322d8527c5f69f4b537ec4b2796f6f8ca60b40 7883 
sympa_6.2.76~dfsg-1+deb13u1_source.buildinfo
Files:
 b0d21cc8da34d86a1ec12e805e92659b 2752 mail optional 
sympa_6.2.76~dfsg-1+deb13u1.dsc
 7d909ce93274633140e3096eb15b0134 3864188 mail optional 
sympa_6.2.76~dfsg.orig.tar.xz
 42baf6e80709263c5f012b3f4eb1e874 165432 mail optional 
sympa_6.2.76~dfsg-1+deb13u1.debian.tar.xz
 2d130c61dffc17da76382db5c9bcc91f 7883 mail optional 
sympa_6.2.76~dfsg-1+deb13u1_source.buildinfo

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

iQKmBAEBCgCQFiEERkRAmAjBceBVMd3uBUy48xNDz0QFAmryPbZfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDQ2
NDQ0MDk4MDhDMTcxRTA1NTMxRERFRTA1NENCOEYzMTM0M0NGNDQSHGNhcm5pbEBk
ZWJpYW4ub3JnAAoJEAVMuPMTQ89En2kP/2ACLTLzf7ameo9+BRdRWwweAsqPzdfu
RYnKV+Z5NhEyw4X+UfUqfjoc6ldC5ImgeO00j5eia5ExWm3OiL071XL99j/LNnLx
eeLDPfKQse9tYxNkF8y/Rb0P3dFp/4A+f4AHZCne3CGEQoYiHpDWKa0pQ5+ijMWp
I45V9XSjxJsIXwfXOjTt3gQ03ehC0kF2nKAO6FyMUgPYaXkf8m14QkcxufSno4k6
GsR10RhARo9xwO5gH/FyfFepvdTfROJDaPtoEHOPN+KailPhvVyWj1TsdjeqvSeh
dVmExQiCYMutufTjq33ME/TDcyFxOTcTHoHzIin3ILefrjNsn4BKg1AzSgibrn3W
EHkPO7bxtJq4kdULwC17C7hNB01L2C1NxLvPHSfDvMYFhFn1VkPF/loPavgY3Izu
qdrPPefMbuJ9sQ2wHNDPYwRdNCcJsyX5z046e6AMWvsFXSKw+UF5dORHcadIYw2k
e59/cGBSxDmMl6WPgtgcLgD/mHax5GzQho2UB9wjKQXEYDXCkliFhzbo9jaTJTTf
bSP1Hdf8lh40ujB8W93hQp6H+hOTqwAAFttCEfnIVHGsPDdnS8DgfMAZyFL414gn
Qrx4W8NCD9kCDqdKJgeg3iGq4DcqxJ1MEsPxdbm3But2qYaCDXBRHPwdGvof+JqB
ZfWX9svqcyNX
=9TeJ
-----END PGP SIGNATURE-----

Attachment: pgp62jQEHPBhN.pgp
Description: PGP signature


--- End Message ---

Reply via email to