squirrelmail: Insufficient escaping of user-supplied data
Published Apr 20, 2017
8.8
HIGHCVSS 3.0
EPSS 32.16%
Description
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.
Affected products
No data.
- 1.4.22
No data.
Red Hat Enterprise Linux 5
squirrelmail
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | squirrelmail | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:S/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (52 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 32.16% (0.32156) | 98.27th | v5 (v2026.06.15) |
| Sep 22, 2026 | 32.16% (0.32156) | 98.24th | v5 (v2026.06.15) |
| Sep 21, 2026 | 27.77% (0.27775) | 98.05th | v5 (v2026.06.15) |
| Sep 6, 2026 | 32.16% (0.32156) | 98.20th | v5 (v2026.06.15) |
| Sep 5, 2026 | 27.77% (0.27775) | 98.01th | v5 (v2026.06.15) |
| Aug 30, 2026 | 32.16% (0.32156) | 98.19th | v5 (v2026.06.15) |
| Aug 28, 2026 | 27.77% (0.27775) | 98.00th | v5 (v2026.06.15) |
| Aug 24, 2026 | 32.16% (0.32156) | 98.18th | v5 (v2026.06.15) |
| Aug 23, 2026 | 27.77% (0.27775) | 97.99th | v5 (v2026.06.15) |
| Jun 15, 2026 | 32.16% (0.32156) | 98.09th | v5 (v2026.06.15) |
| Apr 13, 2026 | 15.54% (0.15545) | 94.68th | v4 (v2025.03.14) |
| Mar 4, 2026 | 11.16% (0.11163) | 93.35th | v4 (v2025.03.14) |
| Mar 1, 2026 | 21.03% (0.21031) | 95.56th | v4 (v2025.03.14) |
| Feb 13, 2026 | 11.16% (0.11163) | 93.32th | v4 (v2025.03.14) |
| Feb 4, 2026 | 12.41% (0.12407) | 93.71th | v4 (v2025.03.14) |
| Feb 1, 2026 | 23.03% (0.23029) | 95.79th | v4 (v2025.03.14) |
| Jan 4, 2026 | 12.41% (0.12407) | 93.66th | v4 (v2025.03.14) |
| Jan 1, 2026 | 23.03% (0.23029) | 95.77th | v4 (v2025.03.14) |
| Dec 28, 2025 | 12.41% (0.12407) | 93.66th | v4 (v2025.03.14) |
| Dec 27, 2025 | 15.47% (0.15472) | 94.47th | v4 (v2025.03.14) |
| Dec 4, 2025 | 12.41% (0.12407) | 93.62th | v4 (v2025.03.14) |
| Dec 1, 2025 | 23.03% (0.23029) | 95.72th | v4 (v2025.03.14) |
| Nov 21, 2025 | 12.36% (0.12359) | 93.60th | v4 (v2025.03.14) |
| Nov 18, 2025 | 11.25% (0.11255) | 92.80th | v4 (v2025.03.14) |
| Nov 4, 2025 | 12.36% (0.12359) | 93.57th | v4 (v2025.03.14) |
| Nov 1, 2025 | 23.28% (0.23275) | 95.74th | v4 (v2025.03.14) |
| Oct 4, 2025 | 12.36% (0.12359) | 93.61th | v4 (v2025.03.14) |
| Oct 1, 2025 | 23.28% (0.23275) | 95.78th | v4 (v2025.03.14) |
| Sep 4, 2025 | 11.96% (0.11959) | 93.52th | v4 (v2025.03.14) |
| Sep 1, 2025 | 22.63% (0.22633) | 95.69th | v4 (v2025.03.14) |
| Aug 4, 2025 | 11.96% (0.11959) | 93.48th | v4 (v2025.03.14) |
| Aug 1, 2025 | 22.63% (0.22633) | 95.66th | v4 (v2025.03.14) |
| Jul 4, 2025 | 12.29% (0.12288) | 93.55th | v4 (v2025.03.14) |
| Jul 1, 2025 | 23.16% (0.23162) | 95.68th | v4 (v2025.03.14) |
| Jun 4, 2025 | 12.98% (0.12983) | 93.67th | v4 (v2025.03.14) |
| Jun 1, 2025 | 22.61% (0.22611) | 95.56th | v4 (v2025.03.14) |
| May 4, 2025 | 12.98% (0.12983) | 93.64th | v4 (v2025.03.14) |
| May 1, 2025 | 22.61% (0.22611) | 95.51th | v4 (v2025.03.14) |
| Mar 30, 2025 | 12.98% (0.12983) | 93.44th | v4 (v2025.03.14) |
| Mar 29, 2025 | 24.50% (0.24500) | 93.72th | v4 (v2025.03.14) |
| Mar 17, 2025 | 12.98% (0.12983) | 93.51th | v4 (v2025.03.14) |
| Dec 17, 2024 | 6.23% (0.06234) | 93.51th | v3 (v2023.03.01) |
| Jun 12, 2024 | 7.27% (0.07268) | 94.06th | v3 (v2023.03.01) |
| Mar 31, 2023 | 7.46% (0.07458) | 93.04th | v3 (v2023.03.01) |
| Mar 7, 2023 | 6.97% (0.06972) | 92.84th | v3 (v2023.03.01) |
| Mar 6, 2023 | 20.23% (0.20234) | 96.46th | v2 (v2022.01.01) |
| Apr 1, 2022 | 20.23% (0.20234) | 96.13th | v2 (v2022.01.01) |
| Feb 4, 2022 | 20.23% (0.20234) | 94.02th | v2 (v2022.01.01) |
| Feb 3, 2022 | 15.90% (0.15901) | 90.17th | v1 |
| Jan 6, 2022 | 15.90% (0.15901) | 90.06th | v1 |
| Sep 1, 2021 | 15.90% (0.15901) | 97.32th | v1 |
| Apr 14, 2021 | 15.90% (0.15901) | 0.00th | v1 |
References (13)
- http://openwall.com/lists/oss-security/2017/04/19/6 x_refsource_MISCMailing ListThird Party Advisory
- http://openwall.com/lists/oss-security/2017/04/27/1 x_refsource_MISC
- http://www.debian.org/security/2017/dsa-3852 vendor-advisoryx_refsource_DEBIAN
- http://www.securityfocus.com/bid/98067 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id/1038312 vdb-entryx_refsource_SECTRACK
- http://www.squirrelmail.org/security/issue/2017-04-24
- https://access.redhat.com/security/cve/CVE-2017-7692 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1445165 Issue Tracking
- https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html x_refsource_MISCExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-7692
- https://security.gentoo.org/glsa/201709-13 vendor-advisoryx_refsource_GENTOO
- https://www.cve.org/CVERecord?id=CVE-2017-7692
- https://www.exploit-db.com/exploits/41910/ exploitx_refsource_EXPLOIT-DB
| Link | Providers | Tags |
|---|---|---|
| http://openwall.com/lists/oss-security/2017/04/19/6 | x_refsource_MISCMailing ListThird Party Advisory | |
| http://openwall.com/lists/oss-security/2017/04/27/1 | x_refsource_MISC | |
| http://www.debian.org/security/2017/dsa-3852 | vendor-advisoryx_refsource_DEBIAN | |
| http://www.securityfocus.com/bid/98067 | vdb-entryx_refsource_BID | |
| http://www.securitytracker.com/id/1038312 | vdb-entryx_refsource_SECTRACK | |
| http://www.squirrelmail.org/security/issue/2017-04-24 | ||
| https://access.redhat.com/security/cve/CVE-2017-7692 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1445165 | Issue Tracking | |
| https://legalhackers.com/advisories/SquirrelMail-Exploit-Remote-Code-Exec-CVE-2017-7692-Vuln.html | x_refsource_MISCExploitThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-7692 | ||
| https://security.gentoo.org/glsa/201709-13 | vendor-advisoryx_refsource_GENTOO | |
| https://www.cve.org/CVERecord?id=CVE-2017-7692 | ||
| https://www.exploit-db.com/exploits/41910/ | exploitx_refsource_EXPLOIT-DB |
Change history (0)
No recorded changes yet.