CVE-2024-3220
Last modified
CVE-2024-3220 is a low-severity vulnerability rated 2.3/10 on the CVSS scale. 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.. EPSS estimates a 0.48% chance of exploitation in the next 30 days.
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.
Metrics
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
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-3220?
How severe is CVE-2024-3220?
How do I fix CVE-2024-3220?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-32163CMSeasy 7.7.7.9 is vulnerable to code execution.6.4
- CVE-2024-32166Webid v1.2.1 suffers from an Insecure Direct Object Referenc…8.8
- CVE-2024-32167Sourcecodester Online Medicine Ordering System 1.0 is vulner…9.1
- CVE-2024-3217The WP Directory Kit plugin for WordPress is vulnerable to S…8.8
- CVE-2024-3218A vulnerability classified as critical has been found in Shi…5.4
- CVE-2024-3219The “socket” module provides a pure-Python fallback to the …5.1
- CVE-2024-32205Rejected reason: DO NOT USE THIS CVE RECORD. ConsultIDs: non…
- CVE-2024-32206A stored cross-site scripting (XSS) vulnerability in the com…4.6
- CVE-2024-3221A vulnerability classified as critical was found in SourceCo…8.8
- CVE-2024-32210The LoMag WareHouse Management application version 1.0.20.12…5.3
- CVE-2024-32211An issue in LOGINT LoMag Inventory Management v1.0.20.120 an…5.5
- CVE-2024-32212SQL Injection vulnerability in LOGINT LoMag Inventory Manage…8.1
Are you affected by CVE-2024-3220?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
