Back
CVE-2015-20107
In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the system mailcap…
High7.8EPSS 2.8%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the system mailcap file. This may allow attackers to inject shell commands into applications that call mailcap.findmatch with untrusted input (if they lack validation of user-provided filenames or arguments). The fix is also back-ported to 3.7, 3.8, 3.9
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
- EPSS (exploitation in 30 days)
- 2.8% · top 14% of all CVEs (2 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
Affected products
n/a
- affected n/a
References (31)
- https://bugs.python.org/issue24778 (opens in a new tab)x_transferred
- https://github.com/python/cpython/issues/68966 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20220616-0001/ (opens in a new tab)x_transferred
- FEDORA-2022-5ad25e3d3c (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-cece1d07d9 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-2e1d1205cf (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-4b0dfda810 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-1358cedf2d (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-0be85556b4 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-a8e50dc83e (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-4c788bdc40 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-9da5703d22 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-4a69d20cf4 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-5ea8aa7518 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-ec74ac4079 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-17a1bb7e78 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-dbe9a8f9ac (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-9dd70781cb (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-20e87fb0d1 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-9cd41b6709 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-d157a91e10 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-ce55d01569 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-b499f2a9c6 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-d1682fef04 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-79843dfb3c (opens in a new tab)vendor-advisoryx_transferred
- https://python-security.readthedocs.io/vuln/mailcap-shell-injection.html (opens in a new tab)x_transferred
- GLSA-202305-02 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20230524 [SECURITY] [DLA 3432-1] python2.7 security update (opens in a new tab)mailing-listx_transferred
- [debian-lts-announce] 20230630 [SECURITY] [DLA 3477-1] python3.7 security update (opens in a new tab)mailing-listx_transferred
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .