Description
Multiple cross-site scripting (XSS) vulnerabilities in SquirrelMail before 1.4.18 and NaSMail before 1.7 allow remote attackers to inject arbitrary web script or HTML via vectors involving (1) certain encrypted strings in e-mail headers, related to contrib/decrypt_headers.php; (2) PHP_SELF; and (3) the query string (aka QUERY_STRING).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | squirrelmail | 2:1.4.15-4+lenny1 | DSA-1802-1 |
| Debian 4.0 | squirrelmail | 2:1.4.9a-4 | DSA-1802-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | squirrelmail | 1.4.8-5.el5_3.7 | RHSA-2009:1066 |
| RHEL 4 | squirrelmail | 1.4.8-5.el4_8.5 | RHSA-2009:1066 |
| RHEL 3 | squirrelmail | 1.4.8-13.el3 | RHSA-2009:1066 |
Advisories 2
- DSA-1802-1 squirrelmail - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- RHSA-2009:1066 Red Hat Security Advisory: squirrelmail security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- APPLE-SA-2010-06-15-1 vendor-advisory
- https://gna.org/forum/forum.php?forum_id=2146
- MDVSA-2009:110 vendor-advisory
- 34916 vdb-entry
- http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog
- ADV-2010-1481 vdb-entry
- http://www.squirrelmail.org/security/issue/2009-05-09
- FEDORA-2009-4870 vendor-advisory
- http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail?view=rev&revision=13670
- 35140 third-party-advisory
- http://download.gna.org/nasmail/nasmail-1.7.zip
- 60468 vdb-entry
- FEDORA-2009-4880 vendor-advisory
- oval:org.mitre.oval:def:11624 vdb-entry signature
- http://support.apple.com/kb/HT4188
- squirrelmail-phpself-xss(50459) vdb-entry
- 40220 third-party-advisory
- http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail?view=rev&revision=13672
- ADV-2009-1296 vdb-entry
- http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/contrib/decrypt_headers.php?r1=13672&r2=13671&pathrev=13672
- 35259 third-party-advisory
- 35052 third-party-advisory
- squirrelmail-decryptheaders-xss(50460) vdb-entry
- FEDORA-2009-4875 vendor-advisory
- RHSA-2009:1066 vendor-advisory
- 37415 third-party-advisory
- 35073 third-party-advisory
- http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/functions/global.php?r1=13670&r2=13669&pathrev=13670
- http://www.squirrelmail.org/security/issue/2009-05-08
- ADV-2009-3315 vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=500363
- DSA-1802 vendor-advisory