CVE-2015-20107Python
High 7.6
Follow: this CVE · Python · Python We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 3.1
- 7.6
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- Yes
- Published
- Apr 13, 2022
- Updated
- Oct 14, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-77
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
What happens
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
What to do
- Apply the vendor's security update for Python.
Affected products (CPE)
| 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 |
| netapp | active_iq_unified_manager | all |
| netapp | ontap_select_deploy_administration_utility | all |
| netapp | snapcenter | all |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.python.org Exploit Issue Tracking Vendor Advisory
- github.com Issue Tracking Third Party Advisory
- lists.debian.org
- lists.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- python-security.readthedocs.io Patch Third Party Advisory
- security.gentoo.org
- security.netapp.com Third Party Advisory
- lists.debian.org
- cert-portal.siemens.com