CVE catalog

CVE-2024-3220

python3.11: CVE-2024-3220

[CVE catalog]

Severity
Medium · CVSS 4.6CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.60% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython3.11bookworm3.11.2-6+deb12u8not affected
Debianpython3.11bookworm-security3.11.2-6+deb12u9not affected
Alpinepython33.233.12.16-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython3.11sourcebookwormNot affectedunimportantNot reportedNot reported
Alpinepython3apk3.233.12.16-r0Not reportedALPINE-CVE-2024-3220Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References