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.
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
- BDU:2022-03962
- ALSA-2022:6457
- ALSA-2022:7581
- ALSA-2022:7592
- ALSA-2022:7593
- ALSA-2022:8353
- DLA-3432-1
- DLA-3477-1
- DLA-3980-1
- openSUSE-SU-2024:12143-1
- openSUSE-SU-2024:12150-1
- openSUSE-SU-2024:12152-1
- RHSA-2022:6457
- RHSA-2022:6766
- RHSA-2022:7581
- RHSA-2022:7592
- RHSA-2022:7593
- RHSA-2022:8353
- RLSA-2022:7581
- RLSA-2022:7592
- Published
- Apr 13, 2022
- Updated
- Jun 16, 2026
- EPSS
- 7.1% · 94th percentile
- CWE
- CWE-77
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.6 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 7.1%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
| netapp | active iq unified manager | cpe:2.3:a:netapp:active_iq_unified_manager |
| netapp | ontap select deploy administration utility | cpe:2.3:a:netapp:ontap_select_deploy_administration_utility |
| netapp | snapcenter | cpe:2.3:a:netapp:snapcenter |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora35
- fedoraproject fedora36
- fedoraproject fedora37
- netapp active iq unified managerall versions
- netapp ontap select deploy administration utilityall versions
- netapp snapcenterall versions
- python python3.7.0 and later · up to 3.7.15 inclusive
- python python3.10.0 and later · before 3.10.8
- python python3.9.0 and later · up to 3.9.15 inclusive
- python python3.8.0 and later · up to 3.8.15 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | babel | before 2.5.1-10.module_el8.6.0+2781+fed64c13 | 2.5.1-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | platform-python | before 3.6.8-47.el8_6.alma | 3.6.8-47.el8_6.alma |
| AlmaLinux:8 | platform-python-debug | before 3.6.8-47.el8_6.alma | 3.6.8-47.el8_6.alma |
| AlmaLinux:8 | platform-python-devel | before 3.6.8-47.el8_6.alma | 3.6.8-47.el8_6.alma |
| AlmaLinux:8 | python-nose-docs | before 1.3.7-31.module_el8.6.0+2781+fed64c13 | 1.3.7-31.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python-psycopg2-doc | before 2.7.5-7.module_el8.6.0+3162+01a09e5a | 2.7.5-7.module_el8.6.0+3162+01a09e5a |
| AlmaLinux:8 | python-psycopg2-doc | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python-sqlalchemy-doc | before 1.3.2-2.module_el8.6.0+2781+fed64c13 | 1.3.2-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2 | before 2.7.18-11.module_el8.7.0+3331+6c5bd851.alma | 2.7.18-11.module_el8.7.0+3331+6c5bd851.alma |
| AlmaLinux:8 | python2-attrs | before 17.4.0-10.module_el8.6.0+2781+fed64c13 | 17.4.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-babel | before 2.5.1-10.module_el8.6.0+2781+fed64c13 | 2.5.1-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-backports | before 1.0-16.module_el8.6.0+3162+01a09e5a | 1.0-16.module_el8.6.0+3162+01a09e5a |
| AlmaLinux:8 | python2-backports | before 1.0-16.module_el8.6.0+2781+fed64c13 | 1.0-16.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-backports-ssl_match_hostname | before 3.5.0.1-12.module_el8.6.0+2781+fed64c13 | 3.5.0.1-12.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-bson | before 3.7.0-1.module_el8.6.0+3162+01a09e5a | 3.7.0-1.module_el8.6.0+3162+01a09e5a |
| AlmaLinux:8 | python2-bson | before 3.7.0-1.module_el8.6.0+2781+fed64c13 | 3.7.0-1.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-chardet | before 3.0.4-10.module_el8.6.0+2781+fed64c13 | 3.0.4-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-coverage | before 4.5.1-4.module_el8.6.0+3162+01a09e5a | 4.5.1-4.module_el8.6.0+3162+01a09e5a |
| AlmaLinux:8 | python2-coverage | before 4.5.1-4.module_el8.6.0+2781+fed64c13 | 4.5.1-4.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-Cython | before 0.28.1-7.module_el8.6.0+3162+01a09e5a | 0.28.1-7.module_el8.6.0+3162+01a09e5a |
| AlmaLinux:8 | python2-Cython | before 0.28.1-7.module_el8.6.0+2781+fed64c13 | 0.28.1-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-debug | before 2.7.18-11.module_el8.7.0+3331+6c5bd851.alma | 2.7.18-11.module_el8.7.0+3331+6c5bd851.alma |
| AlmaLinux:8 | python2-devel | before 2.7.18-11.module_el8.7.0+3331+6c5bd851.alma | 2.7.18-11.module_el8.7.0+3331+6c5bd851.alma |
| AlmaLinux:8 | python2-dns | before 1.15.0-10.module_el8.6.0+2781+fed64c13 | 1.15.0-10.module_el8.6.0+2781+fed64c13 |
+96
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth46Plan
- CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al46Plan
- CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C45Plan
- CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:platform-python | 3.6.8-47.el8_6.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:platform-python-debug | 3.6.8-47.el8_6.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:platform-python-devel | 3.6.8-47.el8_6.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-idle | 3.6.8-47.el8_6.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-libs | 3.6.8-47.el8_6.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-test | 3.6.8-47.el8_6.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-tkinter | 3.6.8-47.el8_6.alma · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38 | 3.8.13-1.module_el8.7.0+3344+99a6a656 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-asn1crypto | 1.2.0-3.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-atomicwrites | 1.3.0-8.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-Cython | 0.29.14-4.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-PyMySQL | 0.10.1-1.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| alpine:python3 | 3.10.5-r0 · Alpine:v3.17 | Package registry (OSV) |
| debian:pypy3 | 7.3.11+dfsg-1 · Debian:12 | Package registry (OSV) |
| debian:python2.7 | 2.7.16-2+deb10u2 · Debian:10 | Package registry (OSV) |
| debian:python3.7 | 3.7.3-2+deb10u5 · Debian:10 | Package registry (OSV) |
| debian:python3.9 | 3.9.2-1+deb11u2 · Debian:11 | Package registry (OSV) |
| opensuse:python310 | 3.10.5-150400.4.7.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python310-core | 3.10.5-150400.4.7.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python310-documentation | 3.10.5-150400.4.7.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python39 | 3.9.13-150300.4.13.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:python39-core | 3.9.13-150300.4.13.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:python39-documentation | 3.9.13-150300.4.13.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:platform-python | 0:3.6.8-47.el8_6 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:platform-python-debug | 0:3.6.8-47.el8_6 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:platform-python-devel | 0:3.6.8-47.el8_6 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3 | 0:3.6.8-47.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:python3-debuginfo | 0:3.6.8-47.el8_6 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-debugsource | 0:3.6.8-47.el8_6 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-idle | 0:3.6.8-47.el8_6 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
+30
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:0 | 2024-04-24 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+741 d
- TodaySep 30, 2026+1631 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- low · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- High
- Availability impact
- Low
Weakness class (CWE)
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- LDAP InjectionCAPEC-136likelihood: High · High
- Command DelimitersCAPEC-15likelihood: High · High
- IMAP/SMTP Command InjectionCAPEC-183Medium
- Command InjectionCAPEC-248likelihood: Medium · High
- Manipulating Writeable Terminal DevicesCAPEC-40likelihood: High · Very High
- Exploiting Multiple Input Interpretation LayersCAPEC-43likelihood: Medium · High
- Manipulating Writeable Configuration FilesCAPEC-75likelihood: High · Very High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/python/cpython/issues/68966
- lists.debian.org/debian-lts-announce/2023/05/msg00024.html
- lists.debian.org/debian-lts-announce/2023/06/msg00039.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46KWPTI72SSEOF53DOYQBQOCN4QQB2GE/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/53TQZFLS6O3FLIMVSXFEEPZSWLDZLBOX/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/57NECACX333A3BBZM2TR2VZ4ZE3UG3SN/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5DBVY4YC2P6EPZZ2DROOXHDOWZ4BJFLW/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIKVSW3H6W2GQGDE5DTIWLGFNH6KKEW/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AKGMYDVKI3XNM27B6I6RQ6QV3TVJAUCG/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERYMM2QVDPOJLX4LYXWYIQN5FOIJLDRY/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F3LNY2NHM6J22O6Q5ANOE3SZRK3OACKR/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FCIO2W4DUVVMI6L52QCC4TT2B3K5VWHS/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FIRUTX47BJD2HYJDLMI7JJBVCYFAPKAQ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GPCLGZZJPVXFWUWVV5WCD5FNUAFLKBDN/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HAI2GBC7WKH7J5NH6J2IW5RT3VF2SF5M/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IFGV7P2PYFBMK32OKHCAC2ZPJQV5AUDF/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KAY6VBNVEFUXKJF37WFHYXUSRDEK34N3/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MYG3EMFR7ZHC46TDNM7SNWO64A3W7EUF/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ONXSGLASNLGFL57YU6WT6Y5YURSFV43U/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PTTZGLD2YBMMG6U6F5HOTPOGGPBIURMA/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.