CVE Catalog

CVE-2026-32274

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.62%

46th percentile - higher than 46% of all known CVEs

Summary

Black, the Python code formatter, versions 24.3.0 through 26.3.1, writes cache files whose names are derived from formatting options. The --python-cell-magics option value was placed in the filename without sanitization, allowing an attacker controlling this option to write cache files to arbitrary file system locations. Fixed in version 26.3.1.

Risk Assessment

An attacker can overwrite arbitrary files on the system, potentially leading to privilege escalation or data integrity compromise.

Recommendation

Immediately update Black to version 26.3.1 or later.

Related vulnerabilities

Original NVD description (English source)

Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the --python-cell-magics option was placed in the filename without sanitization, which allowed an attacker who controls the value of this argument to write cache files to arbitrary file system locations. Fixed in Black 26.3.1.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS