Default mimetype known files writeable on Windows

Summary

CVECVE-2024-3220
StatePUBLISHED
AssignerPSF
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-02-14 17:15:15 UTC
Updated2026-10-22 01:16:55 UTC
DescriptionThere 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.

Risk And Classification

Primary CVSS: v4.0 2.3 LOW from [email protected]

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

EPSS: 0.005960000 probability, percentile 0.477850000 (date 2026-10-22)

Problem Types: CWE-426 | CWE-426 CWE-426 Untrusted Search Path


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary2.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/C...
4.0CNACVSS2.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

CVSS v4.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Confidentiality
None
Integrity
Low
Availability
Low
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Python Software Foundation CPython affected 3.14.9 python Not specified
CNA Python Software Foundation CPython affected 3.15.0 3.15.1 python Not specified
CNA Python Software Foundation CPython affected 3.16.0a1 3.16.0 python Not specified

References

ReferenceSourceLinkTags
github.com/python/cpython/issues/159428 [email protected] github.com
mail.python.org/archives/list/[email protected]/thread/CDXW34ND2LS... [email protected] mail.python.org
www.openwall.com/lists/oss-security/2025/02/14/8 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
github.com/python/cpython/commit/76f4555c4ff10f5dda58d6528c17787df41e256c [email protected] github.com
github.com/python/cpython/commit/5550519259656cbb8eeac09e3dbc0d5c248a4dea [email protected] github.com
github.com/python/cpython/commit/04a29bf8f9ff8526cd96cb7368400173303a390a [email protected] github.com
security.netapp.com/advisory/ntap-20250314-0001 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report