CVE-2024-3220

NameCVE-2024-3220
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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python3.11 (PTS)bookworm3.11.2-6+deb12u5fixed
bookworm (security)3.11.2-6+deb12u3fixed
python3.12 (PTS)sid3.12.9-1fixed
python3.13 (PTS)trixie3.13.2-2fixed
sid3.13.2-3fixed
python3.9 (PTS)bullseye3.9.2-1fixed
bullseye (security)3.9.2-1+deb11u3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python3.11source(unstable)(not affected)
python3.12source(unstable)(not affected)
python3.13source(unstable)(not affected)
python3.9source(unstable)(not affected)

Notes

- python3.13 <not-affected> (Windows-specific)
- python3.12 <not-affected> (Windows-specific)
- python3.11 <not-affected> (Windows-specific)
- python3.9 <not-affected> (Windows-specific)
https://mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R/

Search for package or bug name: Reporting problems