SquirrelMail 1.4.22 (and other versions before 20170427_0200-SVN) allows…
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Will not fix Red Hat: no fix planned
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
SquirrelMail 1.4.22 (and other versions before 20170427_0200-SVN) allows post-authentication remote code execution via a sendmail.cf file that is mishandled in a popen call. It's possible to exploit this vulnerability to execute arbitrary shell commands on the remote server. The problem is in the Deliver_SendMail.class.php with the initStream function that uses escapeshellcmd() to sanitize the sendmail command before executing it. The use of escapeshellcmd() is not correct in this case since it doesn't escape whitespaces, allowing the injection of arbitrary command parameters. The problem is in -f$envelopefrom within the sendmail command line. Hence, if the target server uses sendmail and SquirrelMail is configured to use it as a command-line program, it's possible to trick sendmail into using an attacker-provided configuration file that triggers the execution of an arbitrary command. For exploitation, the attacker must upload a sendmail.cf file as an email attachment, and inject the sendmail.cf filename with the -C option within the "Options > Personal Informations > Email Address" setting.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:squirrelmail:squirrelmail:1.4.22:*:*:*:*:*:*:* | 1.4.22 | Vulnerable | SquirrelMail |
- cpe:2.3:a:squirrelmail:squirrelmail:1.4.22:*:*:*:*:*:*:* Versions 1.4.22 Vulnerable ·SquirrelMail
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-7692
- 2026-10-03 Alias added: GHSA-w6jv-pvcq-chp4
References
More Squirrelmail vulnerabilities
- TI-2006-02750 PHP remote file inclusion vulnerability in functions/plugin.php in SquirrelMail 1.4.6 and… CVSS 2.0HIGH 7.5
- TI-2002-00501 SquirrelMail 1.2.5 and earlier allows authenticated SquirrelMail users to execute… CVSS 2.0HIGH 10.0
- TI-2002-01101 Cross-site scripting vulnerabilities in SquirrelMail 1.2.7 and earlier allows remote… CVSS 2.0HIGH 7.5
- TI-2004-00468 Multiple cross-site scripting (XSS) vulnerabilities in SquirrelMail 1.4.2 allow remote… CVSS 2.0MEDIUM 6.8
- TI-2004-00470 SQL injection vulnerability in SquirrelMail before 1.4.3 RC1 allows remote attackers to… CVSS 2.0HIGH 10.0
- TI-2020-11743 compose.php in SquirrelMail 1.4.22 calls unserialize for the $mailtodata value, which… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2017-7692 · CVE Program
- CVE-2017-7692 · NVD
- FIRST EPSS
- GHSA-w6jv-pvcq-chp4 · GitHub Advisory Database · CC BY 4.0
- CVE-2017-7692 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences