There Is a Defect
Source GCVE Database
Not known to be exploited · CVSS 2.3 Low · fixed in 3.16.0 : update CPython when convenient.
Data as of 27 Nov 2026, 22:50 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
As a workaround, users on Windows can call mimetypes.init() with an empty list ([]) to prevent the module from using the default writable file locations. This avoids the vulnerability by not loading MIME type definitions from user-writable paths.
Description
A defect in the CPython standard library module "mimetypes" on Windows causes the default list of known file locations to be writable by users. This allows other users to create invalid files that can cause a MemoryError during Python runtime startup or cause file extensions to be interpreted incorrectly. The issue arises because default locations used on Linux and macOS (e.g., "/etc/mime.types") are also used on Windows, where these paths are user-writable (e.g., "C:\etc\mime.types").
References
- nvd.nist.gov/vuln/detail/CVE-2024-3220 (opens in a new tab)
- github.com/python/cpython/issues/159428 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R (opens in a new tab)
- security.netapp.com/advisory/ntap-20250314-0001 (opens in a new tab)
- openwall.com/lists/oss-security/2025/02/14/8 (opens in a new tab)
- github.com/python/cpython/commit/04a29bf8f9ff8526cd96cb7368400173303a390a (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/5550519259656cbb8eeac09e3dbc0d5c248a4dea (opens in a new tab)
- github.com/python/cpython/commit/76f4555c4ff10f5dda58d6528c17787df41e256c (opens in a new tab)
- github.com/python/cpython/commit/8d4286a3f41d36f42c4b4cf5c4451a5a8c23fe87 (opens in a new tab)