---
cve: "CVE-2024-3220"
severity: "LOW"
cvss: 2.3
epss: "51%"
vendor: "Python Software Foundation"
kev: false
exploited: false
published: "2025-02-14 17:15:15"
tags: [cve, security, low]
source: tsecurity.de CVE-Dossier
exported: "2026-09-10T06:25:08+02:00"
---

# CVE-2024-3220

> 2.3 LOW

## Beschreibung

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.

## CVSS-Vektor

```
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
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |

## Patch verfügbar (OSV)

- ebf955df7a89ed0c7968f79faec1de49f61ed7cb (Commit)

## Referenzen

- <https://mail.python.org/archives/list/security-announce@python.org/thread/CDXW34ND2LSAOYAR5N6UNONP4ZBX4D6R/>
- <http://www.openwall.com/lists/oss-security/2025/02/14/8>
- <https://security.netapp.com/advisory/ntap-20250314-0001/>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2024-3220) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
