CVE-2024-3220
lowpriority · track · 0EPSS 0.006 · 48 %ileDEEUUSEPSS · scored 2026-10-23
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
- NetApp ActiveIQ Unified Manager for Microsoft Windowsall versionscert_bundDEcpe:/a:netapp:active_iq_unified_manager:for_microsoft_windows
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-0379Python: Schwachstelle ermöglicht Manipulation von DateienDeutsch2025-02-16csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Python ausnutzen, um Dateien zu manipulieren.
- BIT-python-2024-32202025-02-19vendor · osvUS
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.
- BIT-python-min-2024-32202025-02-19vendor · osvUS
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.
- PSF-2025-22025-02-14vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202502-1680cnnvd
- EUVD-2024-31812enisa_euvd
- GHSA-74p9-4v44-wwx5enisa_euvd
- BIT-python-2024-3220osv
- BIT-python-min-2024-3220osv
- PSF-2025-2osv
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2025/02/14/8cnnvd
- https://mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R/cnnvd
- https://vigilance.fr/vulnerability/Python-Core-mimetypes-denial-of-service-via-Windows-Default-Mimetype-Files-46395cnnvd
- https://mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R/enisa_euvd
- http://www.openwall.com/lists/oss-security/2025/02/14/8nvd
- https://github.com/python/cpython/commit/04a29bf8f9ff8526cd96cb7368400173303a390anvd
- https://github.com/python/cpython/commit/5550519259656cbb8eeac09e3dbc0d5c248a4deanvd
- https://github.com/python/cpython/commit/76f4555c4ff10f5dda58d6528c17787df41e256cnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan