CVE-2015-20107
- State
- Published
- Severity
- 7.8 High
- Published
- Apr 13, 2022
- Updated
- Oct 14, 2026
- Reserved
- Apr 13, 2022
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
Weaknesses
- CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Products
| Product | Versions |
|---|---|
n/an/a |
|
References
- https://bugs.python.org/issue24778
- https://github.com/python/cpython/issues/68966
- https://security.netapp.com/advisory/ntap-20220616-0001/
- FEDORA-2022-5ad25e3d3cvendor-advisory
- FEDORA-2022-cece1d07d9vendor-advisory
- FEDORA-2022-2e1d1205cfvendor-advisory
- FEDORA-2022-4b0dfda810vendor-advisory
- FEDORA-2022-1358cedf2dvendor-advisory
- FEDORA-2022-0be85556b4vendor-advisory
- FEDORA-2022-a8e50dc83evendor-advisory
- FEDORA-2022-4c788bdc40vendor-advisory
- FEDORA-2022-9da5703d22vendor-advisory
- FEDORA-2022-4a69d20cf4vendor-advisory
- FEDORA-2022-5ea8aa7518vendor-advisory
- FEDORA-2022-ec74ac4079vendor-advisory
- FEDORA-2022-17a1bb7e78vendor-advisory
- FEDORA-2022-dbe9a8f9acvendor-advisory
- FEDORA-2022-9dd70781cbvendor-advisory
- FEDORA-2022-20e87fb0d1vendor-advisory
- FEDORA-2022-9cd41b6709vendor-advisory
- FEDORA-2022-d157a91e10vendor-advisory
- FEDORA-2022-ce55d01569vendor-advisory
- FEDORA-2022-b499f2a9c6vendor-advisory
- FEDORA-2022-d1682fef04vendor-advisory
- FEDORA-2022-79843dfb3cvendor-advisory
- https://python-security.readthedocs.io/vuln/mailcap-shell-injection.html
- GLSA-202305-02vendor-advisory
- [debian-lts-announce] 20230524 [SECURITY] [DLA 3432-1] python2.7 security updatemailing-list
- [debian-lts-announce] 20230630 [SECURITY] [DLA 3477-1] python3.7 security updatemailing-list
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.