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.
Conclusion & alert: CVE-2017-7692 is rated High Exploit Risk (83.8/100): CVSS High severity, with high exploitation likelihood (EPSS 15.95%, 95th percentile). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| 41910 | exploit_db | edb | 2017-04-23 | Exploit-DB ↗ |
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-28 | 15.60% | 15.95% | +0.35% |
| 2 | 2026-05-13 | 15.54% | 15.60% | +0.06% |
| 3 | 2026-04-13 | — | 15.54% | — |
Full EPSS history (44 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.0 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 9.0 | 2.0 | HIGH |
|
8.0 | 10.0 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
gentoo
|
normal | CVE-2017-7692: 1 GLSA(s) (201709-13), 1 atom(s) (mail-client/squirrelmail); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2017-7692 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2017-7692 |
ubuntu
|
medium | CVE-2017-7692 medium priority: Ubuntu including 1 source packages (squirrelmail), 6 status rows across 6 suites (precise, trusty, upstream, xenial, yakkety, zesty): released 3, DNE 1, ignored 1, needs-triage 1. | https://ubuntu.com/security/CVE-2017-7692 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| squirrelmail | squirrelmail | 1.4.22 | cpe:2.3:a:squirrelmail:squirrelmail:1.4.22:*:*:*:*:*:*:* |