CVE-2024-3220

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
UNKNOWN
---
PSFCNA
---
---
CISA-ADPADP
---
---
CVEADP
---
---
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 26%
Debian logo
Debian Releases
Debian Product
Codename
python3.11
bookworm
3.11.2-6+deb12u6
fixed
bookworm (security)
3.11.2-6+deb12u3
fixed
python3.12
sid
3.12.10-1
fixed
python3.13
trixie
3.13.3-2
fixed
sid
3.13.3-4
fixed
python3.9
bullseye
3.9.2-1
fixed
bullseye (security)
3.9.2-1+deb11u3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python2.7
oracular
dne
noble
dne
jammy
not-affected
focal
not-affected
bionic
not-affected
xenial
not-affected
python3.10
oracular
dne
noble
dne
jammy
not-affected
focal
dne
python3.11
oracular
dne
noble
dne
jammy
not-affected
focal
dne
python3.12
oracular
not-affected
noble
not-affected
jammy
dne
focal
dne
python3.13
oracular
not-affected
noble
dne
jammy
dne
focal
dne
python3.4
oracular
dne
noble
dne
jammy
dne
focal
dne
python3.5
oracular
dne
noble
dne
jammy
dne
focal
dne
xenial
not-affected
python3.6
oracular
dne
noble
dne
jammy
dne
focal
dne
bionic
not-affected
python3.7
oracular
dne
noble
dne
jammy
dne
focal
dne
bionic
not-affected
python3.8
oracular
dne
noble
dne
jammy
dne
focal
not-affected
bionic
not-affected
python3.9
oracular
dne
noble
dne
jammy
dne
focal
not-affected