CVE-2026-32274
HIGH EPSS 34.0%
Published Mar 12, 20263mo ago · Modified Jun 17, 20261w ago
8.7 CVSS 4.0
Published Mar 12, 2026 3mo ago
Last Modified Jun 17, 2026 1w ago
Description
Black is the uncompromising Python code formatter. Prior to 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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope X
Threat Intelligence
EPSS Exploit Probability
34.0% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 1
CWE-22 Path Traversal Resource Mgmt
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| python | black | * | <26.3.1 |
References 4
- github.com https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d
- github.com https://github.com/psf/black/pull/5038
- github.com https://github.com/psf/black/releases/tag/26.3.1
- github.com https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m
Remediation
- github.com https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d
- github.com https://github.com/psf/black/pull/5038