CVE-2017-7692

Exp

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 update: 2026-05-13 Assigner: [email protected] Source: [email protected]

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.

Public exploit references (Exploit-DB) for CVE-2017-7692

EDB-ID Source Kind Published Link
41910 exploit_db edb 2017-04-23 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2017-7692

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)

Common vulnerability scoring system (CVSS) metrics for CVE-2017-7692

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.8 3.0 HIGH
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 5.9 [email protected]
9.0 2.0 HIGH
AV:N/AC:L/Au:S/C:C/I:C/A:C Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:S)
A single authentication is required.
Confidentiality impact (C:C)
Complete confidentiality impact.
Integrity impact (I:C)
Complete integrity impact.
Availability impact (A:C)
Complete availability impact.
8.0 10.0 [email protected]

Weakness enumeration for CVE-2017-7692

OS Trackers for CVE-2017-7692

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

Affected software / configurations for CVE-2017-7692

Vendor Product Version Raw CPE
squirrelmail squirrelmail 1.4.22 cpe:2.3:a:squirrelmail:squirrelmail:1.4.22:*:*:*:*:*:*:*

References for CVE-2017-7692

cvelogic Threat Intelligence