CVE-2015-20107
Reported by mitre · Published April 13, 2022
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
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3 | Alpine | 3.10.5-r0 |
| python3.9 | Ubuntu:Pro:20.04:LTS | 3.9.5-3ubuntu0~20.04.1+esm1 |
| debian/python-3.13 | debian | 3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16 |
| debian/python-3.10 | debian | 3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16 |
| python3.6 | Ubuntu:18.04:LTS | 3.6.9-1~18.04ubuntu1.8 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
| python2.7 | Ubuntu:18.04:LTS | 2.7.17-1~18.04ubuntu1.8 |
| debian/python-3.12 | debian | 3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16 |
| alpine/python-3.13 | alpine | 3.11.0-beta4, 3.10.8, 3.9.16, 3.8.16, 3.7.16 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| python2.7 | Ubuntu:22.04:LTS | 2.7.18-13ubuntu1.1 |
| python2.7 | Ubuntu:Pro:16.04:LTS | 2.7.12-1ubuntu0~16.04.18+esm2 |
11 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| alpine | python3 | 0 |
| n/a | n/a | * |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
Timeline
- Apr 13, 2022 CVE Published
- Apr 14, 2022 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Mar 5, 2026 Distribution Patch (56 in total, the first dated here)
- Mar 5, 2026 Security Advisory (60 in total, the first dated here)
- Oct 15, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2015-20107
vulnetix vdb fixes CVE-2015-20107
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2015-20107/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-5ad25e3d3c vendor-advisory
- FEDORA-2022-cece1d07d9 vendor-advisory
- FEDORA-2022-2e1d1205cf vendor-advisory
- FEDORA-2022-4b0dfda810 vendor-advisory
- FEDORA-2022-1358cedf2d vendor-advisory
- FEDORA-2022-0be85556b4 vendor-advisory
- FEDORA-2022-a8e50dc83e vendor-advisory
- FEDORA-2022-4c788bdc40 vendor-advisory
- FEDORA-2022-9da5703d22 vendor-advisory
- FEDORA-2022-4a69d20cf4 vendor-advisory
- FEDORA-2022-5ea8aa7518 vendor-advisory
- FEDORA-2022-ec74ac4079 vendor-advisory
- FEDORA-2022-17a1bb7e78 vendor-advisory
- FEDORA-2022-dbe9a8f9ac vendor-advisory
- FEDORA-2022-9dd70781cb vendor-advisory
- FEDORA-2022-20e87fb0d1 vendor-advisory
- FEDORA-2022-9cd41b6709 vendor-advisory
…and 11 more