Home / Squirrelmail / Squirrelmail / CVE-2017-7692
CVE-2017-7692: is it exploited, and which versions of Squirrelmail are affected and fixed?
CVE-2017-7692 is an improper input validation vulnerability in Squirrelmail. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: squirrelmail 1.4.22 (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (8.8, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:18 UTC and NVD November 19, 2026, 08:42 UTC.
What is CVE-2017-7692?
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.
From the CVE record by mitre, last updated August 5, 2024, 16:12 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| squirrelmail | squirrelmail | 1.4.22 | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:24 UTC.
How severe is CVE-2017-7692?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 9.0 | CVSS 2.0 | AV:N/AC:L/Au:S/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2017-7692 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 32.2% probability of exploitation activity in the next 30 days, percentile 98.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
Where are the vendor advisories and references?
- https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html x_refsource_MISC
- 98067 vdb-entry, x_refsource_BID
- http://openwall.com/lists/oss-security/2017/04/19/6 x_refsource_MISC
- 41910 exploit, x_refsource_EXPLOIT-DB
- GLSA-201709-13 vendor-advisory, x_refsource_GENTOO
- DSA-3852 vendor-advisory, x_refsource_DEBIAN
- 1038312 vdb-entry, x_refsource_SECTRACK
- http://openwall.com/lists/oss-security/2017/04/27/1 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 11, 2017
- Published
- April 20, 2017, 14:00 UTC
- CVE record updated
- August 5, 2024, 16:12 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:24 UTC
- Last checked
- CVE list November 19, 2026, 07:18 UTC; NVD November 19, 2026, 08:42 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Squirrelmail?
- Apr 2, 2025CVE-2025-30090 SquirrelMail: cross-site scripting (XSS)
- Jun 20, 2020CVE-2020-14932 Squirrelmail: deserialization of untrusted data
- Jun 20, 2020CVE-2020-14933 Squirrelmail: deserialization of untrusted data disputed
- Feb 13, 2020CVE-2012-5623 Squirrelmail: broken or risky cryptography
- Jul 1, 2019CVE-2019-12970 Squirrelmail: cross-site scripting (XSS)
- Aug 5, 2018CVE-2018-14955 Squirrelmail: cross-site scripting (XSS)
- Aug 5, 2018CVE-2018-14954 Squirrelmail: cross-site scripting (XSS)
- Aug 5, 2018CVE-2018-14953 Squirrelmail: cross-site scripting (XSS)
Questions about CVE-2017-7692
Is CVE-2017-7692 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 32.2% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Squirrelmail are affected by CVE-2017-7692?
squirrelmail 1.4.22, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2017-7692?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2017-7692?
High (8.8, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2017-7692?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.