Skip to main content
VulnerabilityPublished Updated

CVE-2024-3220: Python Software Foundation CPython · Untrusted Search Path

Affects Python Software Foundation CPythonSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 2.3 Low · fixed in 3.16.0 : update Python Software Foundation CPython when convenient.

Data as of 28 Nov 2026, 18:35 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (PSF)CVSS 4.02.3
EPSS
1.2% chance of exploitation in 30 days – higher than 68% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.16.0, 3.15.1, 3.14.9 +3
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Feb 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Python Software FoundationCPythonAffected
  • >=3.16.0a1 <3.16.0
Fixed in
  • 3.16.0
Python Software FoundationCPythonAffected
  • >=3.15.0 <3.15.1
Fixed in
  • 3.15.1
Python Software FoundationCPythonAffected
  • >=3.14.0 <3.14.9
Fixed in
  • 3.14.9
Python Software FoundationCPythonAffected
  • >=3.13.0 <3.13.18
Fixed in
  • 3.13.18
Python Software FoundationCPythonAffected
  • >=3.12.0 <3.12.16
Fixed in
  • 3.12.16
Python Software FoundationCPythonAffected
  • <3.11.18
Fixed in
  • 3.11.18

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The vulnerability is fixed in CPython versions 3.11.18, 3.12.16, 3.13.18, 3.14.9, 3.15.1, and 3.16.0. Users should upgrade to one of these fixed versions. As a workaround on Windows, users can call mimetypes.init() with an empty list to avoid using the default writable file locations. No other vendor advisories indicate additional mitigations or that no action is required.

Description

CVE-2024-3220 is a low-severity vulnerability in the Python CPython standard library module mimetypes affecting Windows platforms. The issue arises because mimetypes uses default file locations that are writable by users on Windows, allowing creation of invalid files that can cause a MemoryError during Python startup or incorrect file type interpretation. This occurs due to Linux/macOS default paths being used on Windows where they are user-writable. The vulnerability is fixed in CPython versions 3.11.18, 3.12.16, 3.13.18, 3.14.9, 3.15.1, and 3.16.0. A workaround is to call mimetypes.init() with an empty list on Windows to avoid using the default writable locations.

References

Community reviews

Loading reviews…