CVE-2015-20107
Last modified
CVE-2015-20107 is a high-severity vulnerability rated 7.6/10 on the CVSS scale. 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). EPSS estimates a 6.71% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Python | Python | >= 3.7.0, <= 3.7.15 |
| Python | Python | >= 3.8.0, <= 3.8.15 |
| Python | Python | >= 3.9.0, <= 3.9.15 |
| Python | Python | >= 3.10.0, < 3.10.8 |
| Netapp | Active Iq Unified Manager | All versions |
| Netapp | Ontap Select Deploy Administration Utility | All versions |
| Netapp | Snapcenter | All versions |
| Fedoraproject | Fedora | 35 |
| Fedoraproject | Fedora | 36 |
| Fedoraproject | Fedora | 37 |
References
- https://bugs.python.org/issue24778Exploit, Issue Tracking, Vendor Advisory
- https://github.com/python/cpython/issues/68966Issue Tracking, Third Party Advisory
- https://python-security.readthedocs.io/vuln/mailcap-shell-injection.htmlPatch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220616-0001/Third Party Advisory
- https://bugs.python.org/issue24778Exploit, Issue Tracking, Vendor Advisory
- https://github.com/python/cpython/issues/68966Issue Tracking, Third Party Advisory
- https://python-security.readthedocs.io/vuln/mailcap-shell-injection.htmlPatch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220616-0001/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2015-20107?
How severe is CVE-2015-20107?
How do I fix CVE-2015-20107?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2015
- CVE-2015-2007Directory traversal vulnerability in IBM Security QRadar SIE…
- CVE-2015-2008IBM Security QRadar SIEM 7.1.x before 7.1 MR2 Patch 12 and 7…
- CVE-2015-2009Cross-site request forgery (CSRF) vulnerability in the xmlrp…
- CVE-2015-2010Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultI…
- CVE-2015-20105The ClickBank Affiliate Ads WordPress plugin through 1.20 do…9.6
- CVE-2015-20106The ClickBank Affiliate Ads WordPress plugin through 1.20 do…4.8
- CVE-2015-20108xml_security.rb in the ruby-saml gem before 1.0.0 for Ruby a…9.8
- CVE-2015-20109end_pattern (called from internal_fnmatch) in the GNU C Libr…5.5
- CVE-2015-2011The xmlrpc.cgi Webmin script in IBM QRadar SIEM 7.1 MR2 befo…
- CVE-2015-20110JHipster generator-jhipster before 2.23.0 allows a timing at…7.5
- CVE-2015-20111miniupnp before 4c90b87, as used in Bitcoin Core before 0.12…9.8
- CVE-2015-20112RLPx 5 has two CTR streams based on the same key, IV, and no…3.4
Are you affected by CVE-2015-20107?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
