Vulnerability · 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 file.
Published Apr 13, 2022 · catalog updated Oct 14, 2026 · In Python (aka CPython)
Check if you run it
No confirmed exploitation is on record for CVE-2015-20107. EPSS is 2.78%. Act only if a listed version of In Python (aka CPython) is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (In Python (aka CPython)).
- No version range is stored. A customer cannot check an installed version against this record.
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- High7.6
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 2.78%
- Remediation
- Advisory link
- Affected products
- cpe fedoraproject/fedora · cpe netapp/active iq unified manager · cpe netapp/ontap select deploy administration utility · cpe netapp/snapcenter · cpe python/python · vendor n/a n/a
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
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe fedoraproject/fedora35
- cpe netapp/active iq unified managerversion unspecified
- cpe netapp/ontap select deploy administration utilityversion unspecified
- cpe netapp/snapcenterversion unspecified
- cpe python/pythonversion unspecified
- vendor n/a n/aversion unspecified
How to fix CVE-2015-20107
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2015-20107. EPSS is 2.78%. Act only if a listed version of In Python (aka CPython) is installed.
Which versions are affected?
Compare what you have installed with 35. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-77: Command Injection. EPSS 2.78%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Apr 13, 2022 · NIST NVD
Detected
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
Oct 14, 2026 · NIST NVD
Updated
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
Sources
- CVE.orgVulnerability recordCVE-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 file. This may allow attackers to inject shell commands into applications that call mailcap.findmatch with untrusted input (if they lack validati
cve.org - FIRST EPSSExploitation probabilityCVE-2015-20107
30-day exploitation probability 2.8%
first.org - NIST NVDVulnerability recordCVE-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 file. This may allow attackers to inject shell commands into applications that call mailcap.findmatch with untrusted input (if they lack validati
nvd.nist.gov
References
- Exploit · bugs.python.org
- Issue Tracking · github.com
- Reference · lists.debian.org
- Reference · lists.debian.org
- Reference · lists.fedoraproject.org
- Reference · lists.fedoraproject.org
- Reference · lists.fedoraproject.org
- Reference · lists.fedoraproject.org
- FEDORA-2022-cece1d07d9 · lists.fedoraproject.org
- FEDORA-2022-5ad25e3d3c · lists.fedoraproject.org
- FEDORA-2022-2e1d1205cf · lists.fedoraproject.org
- FEDORA-2022-1358cedf2d · lists.fedoraproject.org
- Reference · security.netapp.com
Freshness
Last verified in this catalog Oct 16, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.