Description
PHP remote file inclusion vulnerability in functions/plugin.php in SquirrelMail 1.4.6 and earlier, if register_globals is enabled and magic_quotes_gpc is disabled, allows remote attackers to execute arbitrary PHP code via a URL in the plugins array parameter. NOTE: this issue has been disputed by third parties, who state that Squirrelmail provides prominent warnings to the administrator when register_globals is enabled. Since the varieties of administrator negligence are uncountable, perhaps this type of issue should not be included in CVE. However, the original developer has posted a security advisory, so there might be relevant real-world environments under which this vulnerability is applicable
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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | squirrelmail | 1.4.6-7.el4 | RHSA-2006:0547 |
| RHEL 3 | squirrelmail | 1.4.6-7.el3 | RHSA-2006:0547 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Squirrelmail 1.4.x - 'Redirect.php' Local File Inclusion EDB-27948 · webapps · Jun 2, 2006 · verified
GitHub 1 repository
-
karthi-the-hacker/CVE-2006-2842 ★ 3 · Dec 28, 2023
CVE-2006-2842 is a powerful scanner for bug bounty hunters and penetration testers to discover vulnerabilities in their web applications.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Squirrelmail <=1.4.6 - Local File Inclusion http/cves/2006/CVE-2006-2842.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 1
- RHSA-2006:0547 Red Hat Security Advisory: squirrelmail security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- SUSE-SR:2006:017 vendor-advisory
- ADV-2007-2732 vdb-entry
- 18231 vdb-entry
- APPLE-SA-2007-07-31 vendor-advisory
- http://squirrelmail.cvs.sourceforge.net/squirrelmail/squirrelmail/functions/global.php?r1=1.27.2.16&r2=1.27.2.17&view=patch&pathrev=SM-1_4-STABLE
- 20060601 Squirrelmail local file inclusion mailing-list
- 21262 third-party-advisory
- RHSA-2006:0547 vendor-advisory
- 20406 third-party-advisory
- 1016209 vdb-entry
- http://www.squirrelmail.org/security/issue/2006-06-01
- ADV-2006-2101 vdb-entry
- http://docs.info.apple.com/article.html?artnum=306172
- 21159 third-party-advisory
- 25159 vdb-entry
- MDKSA-2006:101 vendor-advisory
- oval:org.mitre.oval:def:11670 vdb-entry signature
- 26235 third-party-advisory
- 20931 third-party-advisory