{"id":"CVE-2024-3220","aliases":["ALPINE-CVE-2024-3220","AZL-84266","BELL-CVE-2024-3220","BIT-python-2024-3220","BIT-python-min-2024-3220","EUVD-2024-31812","GHSA-74p9-4v44-wwx5","PSF-2025-2"],"status":"published","title":"Default mimetype known files writeable on Windows","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.\n\nThis 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”).\n\nTo 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.","severity":{"version":"4.0","score":2.3,"vector":"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","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00715,"percentile":0.54055,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-426"],"published":"2025-02-14T16:18:00Z","modified":"2026-11-04T02:46:17Z","fixes":[{"ecosystem":"Alpine:v3.21","package":"python3","fixed_in":["3.12.16-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"python3","fixed_in":["3.12.16-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"python3","fixed_in":["3.12.16-r0"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"python","fixed_in":["3.14.0"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"python-min","fixed_in":["3.14.0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.21","package":"python3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.16-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"python3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.16-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"python3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.16-r0"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"docbook5-style-xsl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.79.2-11"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"python","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.14.0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"python-min","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.14.0"}]}]}],"products":[{"vendor":"python software foundation","product":"cpython"}],"references":[{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R/","tags":["vendor-advisory","web","advisory"]},{"url":"https://github.com/python/cpython/issues/159428","tags":["issue-tracking","report"]},{"url":"https://github.com/python/cpython/commit/04a29bf8f9ff8526cd96cb7368400173303a390a","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/5550519259656cbb8eeac09e3dbc0d5c248a4dea","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/76f4555c4ff10f5dda58d6528c17787df41e256c","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/2f00690fd5a75305e02c99628a41439179266f29","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/35dd324f6e30735162a68cde84bb04a169004325","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/8d4286a3f41d36f42c4b4cf5c4451a5a8c23fe87","tags":["patch","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2025/02/14/8","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20250314-0001/","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3220","tags":["web","advisory"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R"},{"url":"https://security.netapp.com/advisory/ntap-20250314-0001"},{"url":"https://github.com/advisories/GHSA-74p9-4v44-wwx5"},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-3220","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2024-3220","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3220.json","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-3220","title":"Default mimetype known files writeable on Windows","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T16:18:00.918Z","modified":"2026-10-26T00:41:57.165Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low","assessor":"cna"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T14:34:10.613319Z"}],"euvd":[{"id":"EUVD-2024-31812","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T16:18:00Z","modified":"2026-10-26T00:41:57Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low"}],"updated_at":"2026-11-02T16:59:30.708699Z"}],"ghsa":[{"id":"GHSA-74p9-4v44-wwx5","title":"There is a defect in the CPython standard library module “mimetypes” where on Windows the default...","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T18:30:51Z","modified":"2026-10-26T03:30:23Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T15:14:22.728467Z"}],"nvd":[{"id":"CVE-2024-3220","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T17:15:15.567Z","modified":"2026-10-26T01:17:14.45Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low","assessor":"secondary"}],"cwes":["CWE-426"],"updated_at":"2026-11-02T14:10:44.508862Z"}],"osv":[{"id":"ALPINE-CVE-2024-3220","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T17:15:15.567Z","modified":"2026-11-02T11:17:50.092540153Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low"}],"updated_at":"2026-11-02T15:27:49.709457Z"},{"id":"CVE-2024-3220","title":"Default mimetype known files writeable on Windows","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T16:18:00.918Z","modified":"2026-11-11T10:47:16.518288793Z","cvss":[{"version":"4.0","score":2.3,"vector":"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","level":"low"}],"cwes":["CWE-426"],"updated_at":"2026-11-10T10:57:25.458985Z"},{"id":"AZL-84266","title":"CVE-2024-3220 affecting package docbook5-style-xsl 1.79.2-11","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T17:15:15Z","modified":"2026-11-05T05:36:30Z","updated_at":"2026-11-05T16:41:24.988217Z"},{"id":"BELL-CVE-2024-3220","title":"CVE-2024-3220 does not affect BellSoft software","status":"withdrawn","published":"2025-02-15T05:56:58.758951Z","modified":"2026-01-26T09:48:37.406618Z","updated_at":"2026-11-02T15:28:19.923987Z"},{"id":"BIT-python-2024-3220","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.","status":"published","published":"2025-02-19T07:17:18.087Z","modified":"2025-02-19T07:57:04.408186Z","updated_at":"2026-11-02T15:28:34.724063Z"},{"id":"BIT-python-min-2024-3220","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.","status":"published","published":"2025-02-19T07:17:13.292Z","modified":"2025-02-19T07:57:04.408186Z","updated_at":"2026-11-02T15:28:34.724063Z"},{"id":"PSF-2025-2","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.\n\nThis 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”).\n\nTo 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.","status":"published","published":"2025-02-14T16:18:00.918Z","modified":"2026-10-26T01:00:04.900692119Z","updated_at":"2026-11-02T15:52:50.667197Z"}]}}
