CVE-2024-3220: python software foundation cpython Untrusted Search Path
Vulnerability summary
CVE-2024-3220 is a low (CVSS 2.3) Untrusted Search Path vulnerability in python software foundation cpython. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 47.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 8Timeline
- 14-02-2025PublishedVulnerability first disclosed.
- 17-10-2026Last modifiedVulnerability information updated.
Description
There is a defect in the CPython standard library module “mimetypes” where on Windows the default list of known file locations are writable meaning other users can create invalid files to cause MemoryError to be raised on Python runtime startup or have file extensions be interpreted as the incorrect file type. This defect is caused by the default locations of Linux and macOS platforms (such as “/etc/mime.types”) also being used on Windows, where they are user-writable locations (“C:\etc\mime.types”). To work-around this issue a user can call mimetypes.init() with an empty list (“[]”) on Windows platforms to avoid using the default list of known file locations.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · WolfiEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
- NVDNIST2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.60%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
+0.07 pp
From 0.52% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard6 products
- python-3.10All versions (No fix recorded)
- python-3.11All versions (No fix recorded)
- python-3.12All versions (No fix recorded)
- python-3.13All versions (No fix recorded)
- python-3.14< 3.14.2-r3
Wolfi5 products
- python-3.10All versions (No fix recorded)
- python-3.11All versions (No fix recorded)
- python-3.12All versions (No fix recorded)
- python-3.13All versions (No fix recorded)
- python-3.14< 3.14.2-r3
Python software foundation1 product
- cpython< 3.16.0
3 vendors · 12 products
References
10 links- github.com/python/cpythonPACKAGE
- github.com/python/cpython/issues/159428Issue Tracking