Skip to content

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

HighCVSS 8.7 EPSS 0.69%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

43 packages: 5 fixed, 1 partially fixed, 36 with no fix yet.

PackageAffectedFixed inStatus
debian/black(Debian 12) = 23.1.0-1; = 23.3.0-1; = 23.3.0-1~exp1; = 23.7.0-1 +28 more No fix listed No fix yet
redhat ansible core All versions No fix listed No fix yet
redhat container native virtualization All versions No fix listed No fix yet
redhat openshift lightspeed All versions No fix listed No fix yet
redhat/ansible-automation-platform-25/hub-rhel8:1777393635(Red Hat ansible_automation_platform 2.5 el8) All versions No fix listed No fix yet
redhat/ansible-automation-platform-25/lightspeed-rhel8:1777403872(Red Hat ansible_automation_platform 2.5 el8) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/ansible-dev-tools-rhel9:1777390240(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/ee-minimal-rhel9:1777387537(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/hub-rhel9:1777299023(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/lightspeed-rhel9:1777387242(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/platform-resource-runner-rhel9:1777390333(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/ansible-automation-platform-tech-preview/ee-minimal-rhel8(Red Hat ansible_core 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-tech-preview/ee-minimal-rhel9(Red Hat ansible_core 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform/ee-minimal-rhel8(Red Hat ansible_core 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform/ee-minimal-rhel9(Red Hat ansible_core 2) All versions No fix listed No fix yet
redhat/container-native-virtualization/vm-network-latency-checkup-rhel9(Red Hat container_native_virtualization 4) All versions No fix listed No fix yet
redhat/openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9(Red Hat openshift_lightspeed 1) All versions No fix listed No fix yet
redhat/rhoai/odh-model-registry-rhel8(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1776319193(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1790331087(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1776319179(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1789651387(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1776319185(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1789651389(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1776318795(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1789651385(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1776319453(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1790077488(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1776336534(Red Hat openshift_ai 2.25 el9) All versions No fix listed No fix yet
redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1789983680(Red Hat openshift_ai 3.3 el9) All versions No fix listed No fix yet

… and 13 more packages.

Affected products

ProductAffected versionsFixed in
pypi black(PyPI) >= 24.3.0, < 26.3.1 26.3.1
pypi black(PyPI) = 24.10.0 No fix listed
pypi black(PyPI) = 24.3.0 No fix listed
pypi black(PyPI) = 24.4.0 No fix listed
pypi black(PyPI) = 24.4.1 No fix listed
pypi black(PyPI) = 24.4.2 No fix listed
pypi black(PyPI) = 24.8.0 No fix listed
pypi black(PyPI) = 25.1.0 No fix listed
pypi black(PyPI) = 25.11.0 No fix listed
pypi black(PyPI) = 25.12.0 No fix listed
pypi black(PyPI) = 25.9.0 No fix listed
pypi black(PyPI) = 26.1.0 No fix listed
pypi black(PyPI) = 26.1a1 No fix listed
pypi black(PyPI) = 26.3.0 No fix listed
pypi black(PyPI) < 26.3.1 26.3.1
pypi black(PyPI) = 18.3a0 No fix listed
pypi black(PyPI) = 18.3a1 No fix listed
pypi black(PyPI) = 18.3a2 No fix listed
pypi black(PyPI) = 18.3a3 No fix listed
pypi black(PyPI) = 18.3a4 No fix listed
pypi black(PyPI) = 18.4a0 No fix listed
pypi black(PyPI) = 18.4a1 No fix listed
pypi black(PyPI) = 18.4a2 No fix listed
pypi black(PyPI) = 18.4a3 No fix listed
pypi black(PyPI) = 18.4a4 No fix listed
Show 141 more
ProductAffected versionsFixed in
pypi black(PyPI) = 18.5b0 No fix listed
pypi black(PyPI) = 18.5b1 No fix listed
pypi black(PyPI) = 18.6b0 No fix listed
pypi black(PyPI) = 18.6b1 No fix listed
pypi black(PyPI) = 18.6b2 No fix listed
pypi black(PyPI) = 18.6b3 No fix listed
pypi black(PyPI) = 18.6b4 No fix listed
pypi black(PyPI) = 18.9b0 No fix listed
pypi black(PyPI) = 19.10b0 No fix listed
pypi black(PyPI) = 19.3b0 No fix listed
pypi black(PyPI) = 20.8b0 No fix listed
pypi black(PyPI) = 20.8b1 No fix listed
pypi black(PyPI) = 21.10b0 No fix listed
pypi black(PyPI) = 21.11b0 No fix listed
pypi black(PyPI) = 21.11b1 No fix listed
pypi black(PyPI) = 21.12b0 No fix listed
pypi black(PyPI) = 21.4b0 No fix listed
pypi black(PyPI) = 21.4b1 No fix listed
pypi black(PyPI) = 21.4b2 No fix listed
pypi black(PyPI) = 21.5b0 No fix listed
pypi black(PyPI) = 21.5b1 No fix listed
pypi black(PyPI) = 21.5b2 No fix listed
pypi black(PyPI) = 21.6b0 No fix listed
pypi black(PyPI) = 21.7b0 No fix listed
pypi black(PyPI) = 21.8b0 No fix listed
pypi black(PyPI) = 21.9b0 No fix listed
pypi black(PyPI) = 22.1.0 No fix listed
pypi black(PyPI) = 22.10.0 No fix listed
pypi black(PyPI) = 22.12.0 No fix listed
pypi black(PyPI) = 22.3.0 No fix listed
pypi black(PyPI) = 22.6.0 No fix listed
pypi black(PyPI) = 22.8.0 No fix listed
pypi black(PyPI) = 23.1.0 No fix listed
pypi black(PyPI) = 23.10.0 No fix listed
pypi black(PyPI) = 23.10.1 No fix listed
pypi black(PyPI) = 23.11.0 No fix listed
pypi black(PyPI) = 23.12.0 No fix listed
pypi black(PyPI) = 23.12.1 No fix listed
pypi black(PyPI) = 23.1a1 No fix listed
pypi black(PyPI) = 23.3.0 No fix listed
pypi black(PyPI) = 23.7.0 No fix listed
pypi black(PyPI) = 23.9.0 No fix listed
pypi black(PyPI) = 23.9.1 No fix listed
pypi black(PyPI) = 24.1.0 No fix listed
pypi black(PyPI) = 24.1.1 No fix listed
pypi black(PyPI) = 24.1a1 No fix listed
pypi black(PyPI) = 24.2.0 No fix listed
psf black = >= 24.3.0, < 26.3.1 No fix listed
redhat ansible automation platform < 1777393635 1777393635
redhat ansible automation platform < 1777403872 1777403872
redhat ansible automation platform < 1777390240 1777390240
redhat ansible automation platform < 1777387537 1777387537
redhat ansible automation platform < 1777299023 1777299023
redhat ansible automation platform < 1777387242 1777387242
redhat ansible automation platform < 1777390333 1777390333
redhat openshift ai < 1776319193 1776319193
redhat openshift ai < 1776319179 1776319179
redhat openshift ai < 1776319185 1776319185
redhat openshift ai < 1776318795 1776318795
redhat openshift ai < 1776319453 1776319453
redhat openshift ai < 1776336534 1776336534
redhat openshift ai < 1776319275 1776319275
redhat openshift lightspeed All versions No fix listed
redhat ansible automation platform = 2 No fix listed
redhat ansible core All versions No fix listed
redhat openshift ai All versions No fix listed
redhat container native virtualization All versions No fix listed
debian/black(Debian:12) All versions No fix listed
debian/black(Debian:12) = 23.1.0-1 No fix listed
debian/black(Debian:12) = 23.10.0-1 No fix listed
debian/black(Debian:12) = 23.10.1-1 No fix listed
debian/black(Debian:12) = 23.11.0-1 No fix listed
debian/black(Debian:12) = 23.3.0-1 No fix listed
debian/black(Debian:12) = 23.3.0-1~exp1 No fix listed
debian/black(Debian:12) = 23.7.0-1 No fix listed
debian/black(Debian:12) = 23.9.1-1 No fix listed
debian/black(Debian:12) = 24.1.1-1 No fix listed
debian/black(Debian:12) = 24.10.0-1 No fix listed
debian/black(Debian:12) = 24.10.0-2 No fix listed
debian/black(Debian:12) = 24.10.0-3 No fix listed
debian/black(Debian:12) = 24.2.0-1 No fix listed
debian/black(Debian:12) = 24.4.0-1 No fix listed
debian/black(Debian:12) = 24.4.0-2 No fix listed
debian/black(Debian:12) = 24.4.2-1 No fix listed
debian/black(Debian:12) = 24.4.2-2 No fix listed
debian/black(Debian:12) = 24.4.2-2~0exp0 No fix listed
debian/black(Debian:12) = 24.8.0-1 No fix listed
debian/black(Debian:12) = 25.1.0-0exp No fix listed
debian/black(Debian:12) = 25.1.0-1 No fix listed
debian/black(Debian:12) = 25.1.0-2 No fix listed
debian/black(Debian:12) = 25.1.0-3 No fix listed
debian/black(Debian:12) = 25.11.0-1 No fix listed
debian/black(Debian:12) = 25.12.0-1 No fix listed
debian/black(Debian:12) = 25.12.0-2 No fix listed
debian/black(Debian:12) = 25.9.0-1 No fix listed
debian/black(Debian:12) = 26.1.0-1 No fix listed
debian/black(Debian:12) = 26.3.1-1 No fix listed
debian/black(Debian:12) = 26.5.1-1 No fix listed
debian/black(Debian:12) = 26.5.1-2 No fix listed
debian/black(Debian:13) < 25.1.0-3+deb13u1 25.1.0-3+deb13u1
debian/black(Debian:13) = 25.1.0-3 No fix listed
debian/black(Debian:14) < 26.3.1-1 26.3.1-1
debian/black(Debian:14) = 25.1.0-3 No fix listed
debian/black(Debian:14) = 25.11.0-1 No fix listed
debian/black(Debian:14) = 25.12.0-1 No fix listed
debian/black(Debian:14) = 25.12.0-2 No fix listed
debian/black(Debian:14) = 25.9.0-1 No fix listed
debian/black(Debian:14) = 26.1.0-1 No fix listed
ubuntu/black(Ubuntu:22.04) All versions No fix listed
redhat/ansible-automation-platform-25/hub-rhel8:1777393635(Red Hat:ansible_automation_platform:2.5::el8) All versions No fix listed
redhat/ansible-automation-platform-25/lightspeed-rhel8:1777403872(Red Hat:ansible_automation_platform:2.5::el8) All versions No fix listed
redhat/ansible-automation-platform-26/ansible-dev-tools-rhel9:1777390240(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-26/ee-minimal-rhel9:1777387537(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-26/hub-rhel9:1777299023(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-26/lightspeed-rhel9:1777387242(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/ansible-automation-platform-26/platform-resource-runner-rhel9:1777390333(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1776319193(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1776319179(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1776319185(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1776318795(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1776319453(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1776336534(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1776319275(Red Hat:openshift_ai:2.25::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1790331087(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1789651387(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1789651389(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1789651385(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1790077488(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1789983680(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1790260954(Red Hat:openshift_ai:3.3::el9) All versions No fix listed
redhat/openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9(Red Hat:openshift_lightspeed:1) All versions No fix listed
redhat/ansible-automation-platform/ee-minimal-rhel8(Red Hat:ansible_core:2) All versions No fix listed
redhat/ansible-automation-platform/ee-minimal-rhel9(Red Hat:ansible_core:2) All versions No fix listed
redhat/ansible-automation-platform-tech-preview/ee-minimal-rhel8(Red Hat:ansible_core:2) All versions No fix listed
redhat/ansible-automation-platform-tech-preview/ee-minimal-rhel9(Red Hat:ansible_core:2) All versions No fix listed
redhat/rhoai/odh-model-registry-rhel8(Red Hat:openshift_ai) All versions No fix listed
redhat/container-native-virtualization/vm-network-latency-checkup-rhel9(Red Hat:container_native_virtualization:4) All versions No fix listed
ubuntu/black(Ubuntu:24.04) All versions No fix listed
ubuntu/black(Ubuntu:26.04) All versions No fix listed
ubuntu/black(Ubuntu:26.10) All versions No fix listed
python black < 26.3.1 26.3.1

References