KeygraphLabs · CVE MCP

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.

CVSS
8.8
high, from NVD
EPSS
32.2%
percentile 98.4%, chance of exploitation in 30 days
Exploitation
Public exploit
1 public reference

Public exploits

SourceKindReference
exploit-dbproof-of-conceptEDB-41910

Timeline

2017-04-20Published
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 32.2%

Related

CVEPublishedCVSSSummary
CVE-2026-1068042026-11-027.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2025-713832026-10-069.8same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-519972026-09-248.8same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-794102026-09-158.1same weakness (CWE-20) from the same CNA (mitre)
CVE-2025-669742026-09-157.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-390202026-09-095.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2025-516192026-09-095.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-793762026-09-088.8same 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.

NVD · CVE.org