CVE-2026-32274
Fixed in a distro release EPSS <1%CVSS 8.7
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.
Products: psf black, Red Hat Ansible Automation Platform 2.5, Red Hat Ansible Automation Platform 2.6, Red Hat OpenShift AI 2.25, Red Hat OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat Ansible Automation Platform Ansible Core 2, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Virtualization 4
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | black | 26.3.1 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | kserve-storage-controller | 0.16.0-r22 |
| Chainguard | label-studio | 1.23.0-r0 |
| Chainguard | nemo | 2.7.0-r2 |
| Chainguard | open-webui | 0.8.10-r1 |
| Debian 12 | black | no fix |
| Debian 13 | black | 25.1.0-3+deb13u1 |
| Debian 14 | black | 26.3.1-1 |
| SUSE Linux Enterprise Server 16.0 | python-black | 25.1.0-160000.3.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | python-black | 25.1.0-160000.3.1 |
| Ubuntu 20.04 LTS | black | no fix |
| Ubuntu 22.04 LTS | black | no fix |
| Ubuntu 24.04 LTS | black | no fix |
| Ubuntu 25.10 | black | no fix |
| Ubuntu 26.04 LTS | black | no fix |
| Ubuntu 26.10 | black | no fix |
| Wolfi | kserve-storage-controller | 0.16.0-r22 |
| Wolfi | open-webui | 0.8.10-r1 |
| openSUSE Leap 15.6 | python-black | 24.3.0-150400.9.11.1 |
| openSUSE Leap 16.0 | python-black | 25.1.0-160000.3.1 |
| openSUSE Tumbleweed | ansible-lint | 26.9.0-1.1 |
| openSUSE Tumbleweed | python-black | 26.3.1-1.1 |