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
CVE-2015-20107
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-04-14. NVD baseline CVSS 7.6; sources differ by 2.2.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.6
- EG Score
- 9.8CRITICALmedium confidence
- EG Risk
- 47EG Risk 47/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation7% × 40%Automatability0% × 15%CISA SSVC: Track at low or medium mission impact; Track* at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 2.8%
- EPSS %ILE
- 85th
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track* at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines.
Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
April 13, 2022
Last Modified
October 8, 2026
Advisory Details (10)
Auto-updated Oct 8, 2026[SECURITY] Fedora 36 Update: python3.8-3.8.13-3.fc36 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y4E2WBEJ42CGLGDHD6ZXOLZ2W6G3YOVD/[SECURITY] Fedora 35 Update: python3.9-3.9.13-2.fc35 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MYG3EMFR7ZHC46TDNM7SNWO64A3W7EUF/[SECURITY] Fedora 35 Update: python3.7-3.7.13-2.fc35 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ONXSGLASNLGFL57YU6WT6Y5YURSFV43U/[SECURITY] Fedora 36 Update: python3.6-3.6.15-9.fc36 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46KWPTI72SSEOF53DOYQBQOCN4QQB2GE/[SECURITY] Fedora 35 Update: python3.8-3.8.13-3.fc35 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FIRUTX47BJD2HYJDLMI7JJBVCYFAPKAQ/[SECURITY] Fedora 35 Update: python3.6-3.6.15-3.fc35 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERYMM2QVDPOJLX4LYXWYIQN5FOIJLDRY/[SECURITY] Fedora 36 Update: python3.9-3.9.13-2.fc36 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FCIO2W4DUVVMI6L52QCC4TT2B3K5VWHS/[CVE-2015-20107] mailcap.findmatch: document shell command Injection danger in filename parameter · Issue #68966 · python/cpython · GitHub
https://github.com/python/cpython/issues/68966Issue 24778: [CVE-2015-20107] mailcap.findmatch: document shell command Injection danger in filename parameter - Python tracker
https://bugs.python.org/issue24778Vendor Advisories for CVE-2015-20107(7)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2022:8353Red Hat Product SecurityMedium
Red Hat Security Advisory: python3.9 security, bug fix, and enhancement update
- RHSA-2022:7593Red Hat Product SecurityMedium
Red Hat Security Advisory: python27:2.7 security update
- RHSA-2022:7581Red Hat Product SecurityMedium
Red Hat Security Advisory: python38:3.8 and python38-devel:3.8 security update
- RHSA-2022:7592Red Hat Product SecurityMedium
Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update
- RHSA-2022:6766Red Hat Product SecurityMedium
Red Hat Security Advisory: rh-python38-python security update
- RHSA-2022:6457Red Hat Product SecurityMedium
Red Hat Security Advisory: python3 security update
- CVE-2015-20107Microsoft Security Response Center (MSRC)High
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
Patch Availability(9)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3.9 (3.9.5-3ubuntu0~20.04.1+esm1) @ focal | 2026-05-25 | ubuntu |
| ubuntu | libpython3.5 (3.5.2-2ubuntu0~16.04.13+esm3) @ xenial | 2026-05-25 | ubuntu |
| ubuntu | python3.11-venv (3.11.0~rc1-1~22.04.1~esm1) @ jammy | 2026-05-25 | ubuntu |
| redhat | python3.9-0:3.9.14-1.el9 | 2022-11-15 | redhat |
| redhat | python39-devel:3.9-8070020220916150556.be1f0497 | 2022-11-08 | redhat |
| redhat | python38-devel:3.8-8070020220916150349.bd194b04 | 2022-11-08 | redhat |
| redhat | python27:2.7-8070020220617114255.056aacbc | 2022-11-08 | redhat |
| redhat | rh-python38-python-0:3.8.14-1.el7 | 2022-10-03 | redhat |
| redhat | python3-0:3.6.8-47.el8_6 | 2022-09-13 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(16 across 13 ecosystems)
Debian:11(3)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| pypy3 | 7.3.10+dfsg-1 ... 7.3.9+dfsg-5 (53 versions) |
| — |
| python2.7 | 2.7.18-10 ... 2.7.18-9 (10 versions) |
| — |
| python3.9 | 3.9.2-1, 3.9.2-1+deb11u1 |
| — |
Debian:10(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python2.7 | 2.7.16-2, 2.7.16-2+deb10u1 |
| — |
| python3.7 | 3.7.3-2, 3.7.3-2+deb10u1, 3.7.3-2+deb10u2, 3.7.3-2+deb10u3, 3.7.3-2+deb10u4 |
| — |
Alpine:v3.17(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Alpine:v3.18(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Alpine:v3.19(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Alpine:v3.20(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Alpine:v3.21(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Alpine:v3.22(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Alpine:v3.23(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Alpine:v3.24(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3 | — |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| pypy3 | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| pypy3 | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| pypy3 | — |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(3)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 11× in last 7d / 26× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 148 total refreshes for this CVE.
- 2026-10-09 20:01 UTCEPSS rescore
- 2026-10-08 16:35 UTCEPSS rescore
- 2026-10-08 01:33 UTCVendor advisory
- 2026-10-08 01:33 UTCGHSA enrichment
- 2026-10-08 01:04 UTCEG score recompute
- 2026-10-08 01:04 UTCVendor advisory
- 2026-10-08 01:04 UTCGHSA enrichment
- 2026-10-07 23:40 UTCEPSS rescore
- 2026-10-06 15:11 UTCEPSS rescore
- 2026-10-05 17:38 UTCEPSS rescore
- 2026-10-03 14:21 UTCEPSS rescore
- 2026-10-01 19:43 UTCEPSS rescore
- 2026-09-30 14:58 UTCEPSS rescore
- 2026-09-30 09:02 UTCEG score recompute
- 2026-09-28 13:45 UTCEPSS rescore
- 2026-09-27 13:40 UTCEPSS rescore
- 2026-09-27 13:40 UTCEPSS rescore
- 2026-09-26 15:53 UTCEPSS rescore
- 2026-09-25 01:24 UTCOSV refresh
- 2026-09-19 15:35 UTCEPSS rescore
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:21 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-12 14:55 UTCEPSS rescore
- 2026-09-11 09:31 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-09-10 09:26 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-06 13:42 UTCEPSS rescore
- 2026-09-05 16:51 UTCOSV refresh
- 2026-09-05 15:23 UTCEPSS rescore
- 2026-09-04 13:55 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-30 19:12 UTCEPSS rescore
- 2026-08-27 14:20 UTCEPSS rescore
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-20 22:50 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-19 03:29 UTCOSV refresh
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:09 UTCEPSS rescore
- 2026-08-15 01:25 UTCEPSS rescore
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-08 16:31 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:12 UTCEPSS rescore
- 2026-08-04 15:04 UTCEPSS rescore
- 2026-08-03 22:57 UTCOSV refresh
- 2026-08-02 02:22 UTCEPSS rescore
- 2026-08-01 04:11 UTCEPSS rescore
- 2026-07-30 16:23 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-28 15:31 UTCEPSS rescore
- 2026-07-24 14:13 UTCEPSS rescore
- 2026-07-23 14:14 UTCEPSS rescore
- 2026-07-23 01:16 UTCEG score recompute
- 2026-07-23 00:19 UTCEG score recompute
- 2026-07-22 21:57 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:03 UTCEPSS rescore
- 2026-07-19 14:27 UTCEPSS rescore
- 2026-07-19 14:27 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-17 15:59 UTCOSV refresh
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-12 05:42 UTCEPSS rescore
- 2026-07-11 08:23 UTCEPSS rescore
- 2026-07-09 19:05 UTCEPSS rescore
- 2026-07-08 15:10 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:26 UTCEPSS rescore
- 2026-07-04 06:27 UTCEPSS rescore
- 2026-07-02 15:21 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-29 14:02 UTCOSV refresh
- 2026-06-28 14:03 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:10:python3.7 · Debian:10:python2.7 · Alpine:v3.18:python3
Same vendor
10 shownredhat:RHSA-2022:6766 · ubuntu:USN-5888-1 · redhat:RHSA-2022:6457
- CVE-2021-28861EG 7.4HIGH
- CVE-2022-42919EG 7.8HIGH
- CVE-2023-24329EG 7.5EPSS p97HIGH
- CVE-2022-45061EG 7.5HIGH
- CVE-2022-0391EG 7.5EPSS p95HIGH
- CVE-2022-48565EG 9.8EPSS p92CRITICAL
- CVE-2022-37454EG 9.8EPSS p93CRITICAL
- CVE-2021-29921EG 9.8EPSS p94CRITICAL
- CVE-2021-3177EG 9.8EPSS p98CRITICAL
- CVE-2020-27619EG 9.8EPSS p95CRITICAL
Same CWE
10 shownCWE-77
- CVE-2016-4991EG 9.8CRITICAL
- CVE-2016-20017EG 9.8 KEVEPSS p99CRITICAL
- CVE-2015-1877EG 8.8HIGH
- CVE-2015-10096NVD 5.0EG 9.8CRITICAL
- CVE-2015-20108EG 9.8CRITICAL
- CVE-2013-2513EG 9.8CRITICAL
- CVE-2014-5470EG 9.8EPSS p96CRITICAL
- CVE-2014-4982EG 9.8EPSS p91CRITICAL
- CVE-2016-10849EG 6.5MEDIUM
- CVE-2016-10843EG 8.1HIGH
Frequently asked(5)
What is CVE-2015-20107?
When was CVE-2015-20107 disclosed?
Is CVE-2015-20107 actively exploited?
What is the CVSS score of CVE-2015-20107?
How do I remediate CVE-2015-20107?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2015-20107
Is Your Infrastructure Affected by CVE-2015-20107?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.