CVE-2024-3220 json
Default mimetype known files writeable on Windows
published 2025-02-14 20 mo ago modified 2026-10-26 14 d ago also BIT-python-2024-3220 , BIT-python-min-2024-3220 , EUVD-2024-31812
- cvss
- 2.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami python 3.14.0
- bitnami python-min 3.14.0
- Python Software Foundation CPython 3.11.18, 3.12.16, 3.13.18, 3.14.9, 3.15.1, 3.16.0
- python3 Alpine 3.23, Alpine 3.22, Alpine 3.21 3.12.16-r0
alpine advisories ALPINE-CVE-2024-3220
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-3220 updated cvss 4.6
python: Default mimetype known files writeable on Windows
-
Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 more Red Hat Enterprise Linux 8 numpy, scipy, PyYAML, python3, mod_wsgi, python36, +89 more Red Hat Enterprise Linux 9 python3, python3.9, python3.11, python3.12, python3-idle, python3-libs, +11 more Red Hat Enterprise Linux 10 python3.12 Red Hat Enterprise Linux AI (RHEL AI) bootc-nvidia-rhel9, bootc-azure-amd-rhel9, bootc-aws-nvidia-rhel9, bootc-gcp-nvidia-rhel9, bootc-ibm-nvidia-rhel9, bootc-azure-nvidia-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
0.71% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.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:N |
| CNA | 4.0 | 2.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: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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | python | <3.14.0 |
3.14.0 |
| bitnami | python-min | <3.14.0 |
3.14.0 |
Affected products
- Python Software Foundation CPython
Classification
- Weakness
-
- CWE-426 Untrusted Search Path
References
-
github.com
/python/cpython/commit/04a29bf8f9ff8526cd96cb7368400173303a390a
patch
-
github.com
/python/cpython/commit/5550519259656cbb8eeac09e3dbc0d5c248a4dea
patch
-
github.com
/python/cpython/commit/76f4555c4ff10f5dda58d6528c17787df41e256c
patch
-
github.com
/python/cpython/commit/2f00690fd5a75305e02c99628a41439179266f29
patch
-
github.com
/python/cpython/commit/35dd324f6e30735162a68cde84bb04a169004325
patch
-
github.com
/python/cpython/commit/8d4286a3f41d36f42c4b4cf5c4451a5a8c23fe87
patch
-
mail.python.org
/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R/
vendor-advisory, web
-
github.com
/python/cpython/issues/159428
issue-tracking
-
openwall.com
/lists/oss-security/2025/02/14/8
web
- security.netapp.com /advisory/ntap-20250314-0001/
Sources
- CVE List CVE-2024-3220
- NVD CVE-2024-3220
- OSV BIT-python-2024-3220
- OSV BIT-python-min-2024-3220
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.