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

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 26.3.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-03-12 · Modified: 2026-08-03
- Aliases: GHSA-3936-cmfr-pm3m, PYSEC-2026-2121, UBUNTU-CVE-2026-32274, DEBIAN-CVE-2026-32274, CGA-44r9-2q5m-8c2r, CGA-mh32-3c65-4r77, CGA-vf7h-9xph-57j9, CGA-vp72-7m37-c9pm, SUSE-SU-2026:0900-1, openSUSE-SU-2026:11856-1, CGA-365r-9rwh-6hwv, CGA-cr7f-4g7v-pg5v, CGA-x274-x33x-vrm5
- Record: https://cvemate.com/vulnerability/CVE-2026-32274 · JSON: https://cvemate.com/vulnerability/CVE-2026-32274/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.691%, percentile 54.221%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard kserve-storage-controller (Chainguard): \< 0.16.0-r22
- chainguard label-studio (Chainguard): \< 1.23.0-r0
- chainguard nemo (Chainguard): \< 2.7.0-r2
- chainguard open-webui (Chainguard): \< 0.8.10-r1
- wolfi kserve-storage-controller (Wolfi): \< 0.16.0-r22
- wolfi open-webui (Wolfi): \< 0.8.10-r1
- debian black (Debian): All versions (No fix recorded) \| \< 25.1.0-3+deb13u1 \| \< 26.3.1-1
- ubuntu black (Ubuntu): All versions (No fix recorded)
- psf black: ≥ 24.3.0, \< 26.3.1
- PyPI black (PyPI): ≥ 24.3.0, \< 26.3.1 \| \< 26.3.1
- python black: \< 26.3.1
- opensuse ansible-lint&distro=openSUSE Tumbleweed (openSUSE): \< 26.9.0-1.1
- opensuse python-black&distro=openSUSE Leap 15.6 (openSUSE): \< 24.3.0-150400.9.11.1

## References (first 20 of 22)

- <https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m>
- <https://github.com/psf/black/pull/4176>
- <https://github.com/psf/black/pull/5038>
- <https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d>
- <https://github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9>
- <https://access.redhat.com/errata/RHSA-2026:10184>
- <https://access.redhat.com/errata/RHSA-2026:13545>
- <https://access.redhat.com/errata/RHSA-2026:13553>
- <https://access.redhat.com/security/cve/CVE-2026-32274>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2447111>
- <https://github.com/psf/black/releases/tag/26.3.1>
- <https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2026-2121.yaml>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32274.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32274>
- <https://github.com/psf/black>
- <https://ubuntu.com/security/CVE-2026-32274>
- <https://www.cve.org/CVERecord?id=CVE-2026-32274>
- <https://security-tracker.debian.org/tracker/CVE-2026-32274>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32274.json>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260900-1/>

---

Data as of 2026-12-05T04:21:16.755Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
