PT-2025-6639 · Python · Cpython

Seth Larson

·

Published

2025-02-14

·

Updated

2025-02-19

·

CVE-2024-3220

CVSS v4.0

2.3

Low

VectorAV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions CPython versions up to 3.13.x
Description The issue arises from the CPython standard library module "mimetypes" using default locations from Linux and macOS platforms on Windows, where these locations are user-writable. This allows other users to create invalid files, potentially causing a MemoryError when the Python runtime starts or leading to incorrect file type interpretations.
Recommendations To work around this issue, call mimetypes.init() with an empty list ([]) on Windows platforms to avoid using the default list of known file locations.

Fix

Untrusted Search Path

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BIT-PYTHON-2024-3220
BIT-PYTHON-MIN-2024-3220
CVE-2024-3220
ECHO-6E9C-8674-8943
PSF-2025-2

Affected Products

Cpython