CVE-2026-32274GHSA-3936-CMFR-PM3MPYSEC-2026-2121
Black: Arbitrary file writes from unsanitized user input in cache file name
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 26.3.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published1 day
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
143 days - Record last updated
Affected versions
- psf black
From 24.3.0 · fixed in 26.3.1
- blackPyPI
From 24.3.0 · fixed in 26.3.1
- blackPyPI
fixed in 26.3.1