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?
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
