Security Flaw in Python's Mimetypes Module Affects Windows Environments
CVE-2024-3220
2.3LOW
What is CVE-2024-3220?
A defect exists in Python's CPython standard library module 'mimetypes' affecting Windows users. The default list of known file locations is writable, allowing other users to create invalid files. This may lead to a MemoryError when Python starts, or result in incorrect file type interpretations due to incorrect file extensions. The issue arises from the inappropriate application of Unix-style defaults on Windows systems. Users can mitigate the risk by invoking mimetypes.init() with an empty list on Windows to bypass loading default locations.
Affected Version(s)
CPython 0 < 3.14.0