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.
CVE-2026-32274
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 7.5(low)
- EPSS
- 43.1%
- KEV
- Not listed
Published
March 12, 2026
Last Modified
June 30, 2026
Advisory Details (10)
Auto-updated Jul 3, 20262447111 – (CVE-2026-32274) CVE-2026-32274 black: Black: Arbitrary file writes from unsanitized user input in cache file name
https://bugzilla.redhat.com/show_bug.cgi?id=2447111Arbitrary file writes from unsanitized user input in cache file name · Advisory · psf/black · GitHub
https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m26.3.1
Patch available: psf/black 26.3.1
https://github.com/psf/black/releases/tag/26.3.1Fix some shenanigans with the cache file and IPython
Fix merged in psf/black PR #5038 on 2026-03-12 — awaiting tagged release
https://github.com/psf/black/pull/5038commit 4937fe6cf241 (psf/black)
Fix landed in psf/black commit 4937fe6cf241 — awaiting tagged release
https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909dVendor Advisories for CVE-2026-32274(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:13553Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Container Release Update
- RHSA-2026:13545Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
- RHSA-2026:10184Red Hat Product SecurityHigh
Red Hat Security Advisory: RHOAI 2.25.5 - Red Hat OpenShift AI
Patch Availability(3)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | ansible-automation-platform-25/lightspeed-rhel8:1777403872 | 2026-05-04 | redhat |
| redhat | ansible-automation-platform-26/platform-resource-runner-rhel9:1777390333 | 2026-05-04 | redhat |
| redhat | rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1776319275 | 2026-04-23 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| black | 18.3a0 ... 26.3.0 (70 versions) | 26.3.1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 8× in last 7d / 11× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 04:34 UTCEG score recompute
- 2026-06-30 04:34 UTCVendor advisory
- 2026-06-30 04:31 UTCNVD updatefirst tracked
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Frequently asked(5)
What is CVE-2026-32274?
When was CVE-2026-32274 disclosed?
Is CVE-2026-32274 actively exploited?
What is the CVSS score of CVE-2026-32274?
How do I remediate CVE-2026-32274?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-32274
Is Your Infrastructure Affected by CVE-2026-32274?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.