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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/psf/black/pull/4176 patch
- https://github.com/psf/black/pull/5038 issue-tracking patch
- https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d patch
- https://github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9 patch
- https://access.redhat.com/errata/RHSA-2026:10184 patch vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:13545 patch vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:13553 patch vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-32274 mitigation vdb-entry vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2447111 issue-tracking
- github.com product
- https://github.com/psf/black/releases/tag/26.3.1 release-notes vendor-advisory
- 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
- github.com
- Debian Security Tracker CVE-2026-32274 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- RHSA-2026:73987 patch vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-11698 third-party-advisory