CVE-2024-3220: Python Software Foundation CPython · Untrusted Search Path
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 2.3 Low · fixed in 3.16.0 : update Python Software Foundation CPython when convenient.
Data as of 28 Nov 2026, 18:35 UTC
Thin evidence
One scorer or none| CNA (PSF) | CVSS 4.0 | 2.3 |
|---|
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 68% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.16.0, 3.15.1, 3.14.9 +3
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The vulnerability is fixed in CPython versions 3.11.18, 3.12.16, 3.13.18, 3.14.9, 3.15.1, and 3.16.0. Users should upgrade to one of these fixed versions. As a workaround on Windows, users can call mimetypes.init() with an empty list to avoid using the default writable file locations. No other vendor advisories indicate additional mitigations or that no action is required.
Description
CVE-2024-3220 is a low-severity vulnerability in the Python CPython standard library module mimetypes affecting Windows platforms. The issue arises because mimetypes uses default file locations that are writable by users on Windows, allowing creation of invalid files that can cause a MemoryError during Python startup or incorrect file type interpretation. This occurs due to Linux/macOS default paths being used on Windows where they are user-writable. The vulnerability is fixed in CPython versions 3.11.18, 3.12.16, 3.13.18, 3.14.9, 3.15.1, and 3.16.0. A workaround is to call mimetypes.init() with an empty list on Windows to avoid using the default writable locations.
References
- mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R/ (opens in a new tab)
- github.com/python/cpython/issues/159428 (opens in a new tab)
- openwall.com/lists/oss-security/2025/02/14/8 (opens in a new tab)
- security.netapp.com/advisory/ntap-20250314-0001/ (opens in a new tab)
- github.com/python/cpython/commit/04a29bf8f9ff8526cd96cb7368400173303a390a (opens in a new tab)
- github.com/python/cpython/commit/5550519259656cbb8eeac09e3dbc0d5c248a4dea (opens in a new tab)
- github.com/python/cpython/commit/76f4555c4ff10f5dda58d6528c17787df41e256c (opens in a new tab)
- github.com/python/cpython/commit/2f00690fd5a75305e02c99628a41439179266f29 (opens in a new tab)
- github.com/python/cpython/commit/35dd324f6e30735162a68cde84bb04a169004325 (opens in a new tab)
- github.com/python/cpython/commit/8d4286a3f41d36f42c4b4cf5c4451a5a8c23fe87 (opens in a new tab)