{"id":"CVE-2017-7692","published":"2017-04-20T14:00:00Z","modified":"2024-08-05T16:12:27Z","title":"SquirrelMail 1.4.22 (and other versions before 20170427_0200-SVN) allows post-authentication remote code execution via…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"SquirrelMail 1.4.22 and earlier versions before 20170427_0200-SVN contain a flaw in the initStream function of Deliver_SendMail.class.php, where escapeshellcmd() fails to escape whitespace in the -f$envelopefrom parameter of the sendmail command line. An authenticated user can exploit this by uploading a crafted sendmail.cf file as an email attachment and referencing it via the -C option in the Email Address personal setting, which causes sendmail to run arbitrary shell commands on the server when SquirrelMail is configured to use sendmail as a command-line program.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T12:59:56Z"},"cvss":null,"epss":{"score":0.32156,"percentile":0.98317,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-05-20","exploitedFirstSeen":"2026-05-20","ransomware":false,"evidence":[{"url":"https://www.welivesecurity.com/en/eset-research/webworm-new-burrowing-techniques/","date":"2026-05-20"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":3,"pulses":[{"name":"Webworm: New burrowing techniques [WeLiveSecurity]","url":"https://otx.alienvault.com/pulse/6a6cc5c8429c0d2d6360c82f","created":"2026-07-31"},{"name":"New burrowing techniques","url":"https://otx.alienvault.com/pulse/6a12841a08f527aa57f8600c","created":"2026-05-24"},{"name":"New burrowing techniques","url":"https://otx.alienvault.com/pulse/6a0df33ecc667be61a0a9608","created":"2026-05-20"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/98067","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://openwall.com/lists/oss-security/2017/04/19/6","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/41910/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://security.gentoo.org/glsa/201709-13","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.debian.org/security/2017/dsa-3852","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.securitytracker.com/id/1038312","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://openwall.com/lists/oss-security/2017/04/27/1","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2017-16668","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2017-16668","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":41910,"url":"https://www.exploit-db.com/exploits/41910","title":"SquirrelMail < 1.4.22 - Remote Code Execution","type":"remote","platform":"linux","date":"2017-04-23","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2017-04-23"},"first":{"date":"2017-04-23","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/41910"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/41910/"],"flow":[],"timeline":[{"date":"2017-04-20","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2017-7692","provenance":"source"},{"date":"2017-04-23","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-41910)","url":"https://www.exploit-db.com/exploits/41910","provenance":"source"},{"date":"2026-05-20","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.welivesecurity.com/en/eset-research/webworm-new-burrowing-techniques/","provenance":"source"}],"speed":{"daysToPublicExploit":3,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":66.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 165 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.66,"detail":"percentile 0.9832"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 1 Exploit-DB entry"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}