8.7

CVE-2026-32274: Black: Arbitrary file writes from unsanitized user input in cache file name

Modified
AliasesGHSA-3936-cmfr-pm3mPYSEC-2026-2121UBUNTU-CVE-2026-32274
Published 12-03-2026Last modified 03-08-2026

Vulnerability summary

CVE-2026-32274 is a high (CVSS 8.7) vulnerability in psf black. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 54.2% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.69%
0%100%
Low · +0.05 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3 · Related 4

Timeline

  1. 12-03-2026
    PublishedVulnerability first disclosed.
  2. 03-08-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

10 scores · 7 sources · 2 versions

EPSS trend

Probability

0.69%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

Increase +0.05 pp

From 0.65% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard4 products
  • kserve-storage-controller< 0.16.0-r22
  • label-studio< 1.23.0-r0
  • nemo< 2.7.0-r2
  • open-webui< 0.8.10-r1
Opensuse2 products
  • ansible-lint&distro=openSUSE Tumbleweed< 26.9.0-1.1
  • python-black&distro=openSUSE Leap 15.6< 24.3.0-150400.9.11.1
Wolfi2 products
  • kserve-storage-controller< 0.16.0-r22
  • open-webui< 0.8.10-r1
Debian1 product
  • blackAll versions (No fix recorded) | < 25.1.0-3+deb13u1 | < 26.3.1-1
Psf1 product
  • black≥ 24.3.0, < 26.3.1
PyPI1 product
  • black≥ 24.3.0, < 26.3.1 | < 26.3.1
Python1 product
Ubuntu1 product
  • blackAll versions (No fix recorded)

8 vendors · 13 products

References

22 links
Show all 22 references