CVE-2017-7692 · mitre
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.
Published 2017-04-20, last changed 2026-06-17. Weakness: CWE-20.
Public exploits
| Source | Kind | Reference |
|---|---|---|
| exploit-db | proof-of-concept | EDB-41910 |
Timeline
| 2017-04-20 | Published |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 32.2% |
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-106804 | 2026-11-02 | 7.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2025-71383 | 2026-10-06 | 9.8 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-51997 | 2026-09-24 | 8.8 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-79410 | 2026-09-15 | 8.1 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2025-66974 | 2026-09-15 | 7.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-39020 | 2026-09-09 | 5.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2025-51619 | 2026-09-09 | 5.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2026-79376 | 2026-09-08 | 8.8 | same weakness (CWE-20) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-7692, or call /api/v1/vulnerabilities/CVE-2017-7692. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.