CVE-2026-32274
published high CVSS 4.0 · 8.7Black: Arbitrary file writes from unsanitized user input in cache file name
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| psf | — | black>= 24.3.0, < 26.3.1 | Affected | Not stated | GitHub_M |
| Red Hat | — | ansible-automation-platform-25/hub-rhel8Red Hat Ansible Automation Platform 2.5 · 1777393635 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-25/lightspeed-rhel8Red Hat Ansible Automation Platform 2.5 · 1777403872 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/ansible-dev-tools-rhel9Red Hat Ansible Automation Platform 2.6 · 1777390240 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| SUSE / openSUSE | SLE-16 | python313-blacknoarch | Advisory build | 25.1.0-160000.3.1 | SUSE-SU-2026:20928-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-blacknoarch | Advisory build | 24.3.0-150400.9.11.1 | SUSE-SU-2026:0900-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-blacknoarch | Advisory build | 25.1.0-160000.3.1 | OPENSUSE-SU-2026:20417-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-lintaarch64 | Advisory build | 26.9.0-1.1 | OPENSUSE-SU-2026:11856-1 |
Show 36 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | ansible-automation-platform-26/ee-minimal-rhel9Red Hat Ansible Automation Platform 2.6 · 1777387537 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/hub-rhel9Red Hat Ansible Automation Platform 2.6 · 1777299023 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/lightspeed-rhel9Red Hat Ansible Automation Platform 2.6 · 1777387242 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/platform-resource-runner-rhel9Red Hat Ansible Automation Platform 2.6 · 1777390333 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9Red Hat OpenShift AI 2.25 · 1776319193 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9Red Hat OpenShift AI 2.25 · 1776319179 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9Red Hat OpenShift AI 2.25 · 1776319185 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9Red Hat OpenShift AI 2.25 · 1776318795 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9Red Hat OpenShift AI 2.25 · 1776319453 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9Red Hat OpenShift AI 2.25 · 1776336534 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9Red Hat OpenShift AI 2.25 · 1776319275 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9OpenShift Lightspeed | Affected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/ee-supported-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform/ee-minimal-rhel8Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform/ee-minimal-rhel9Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-tech-preview/ee-minimal-rhel8Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat-SADP |
| Red Hat | — | ansible-automation-platform-tech-preview/ee-minimal-rhel9Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-kserve-agent-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-kserve-controller-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-kserve-router-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-kserve-storage-initializer-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-mlflow-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-model-registry-rhel8Red Hat OpenShift AI (RHOAI) | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-training-operator-rhel8Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
| Red Hat | — | container-native-virtualization/vm-network-latency-checkup-rhel9Red Hat OpenShift Virtualization 4 | Affected | Not stated | redhat-SADP |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-lintppc64le | Advisory build | 26.9.0-1.1 | OPENSUSE-SU-2026:11856-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-lints390x | Advisory build | 26.9.0-1.1 | OPENSUSE-SU-2026:11856-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ansible-lintx86_64 | Advisory build | 26.9.0-1.1 | OPENSUSE-SU-2026:11856-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-blackaarch64 | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-blackppc64le | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-blacks390x | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-blackx86_64 | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-blackaarch64 | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-blackppc64le | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-blacks390x | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-blackx86_64 | Advisory build | 26.3.1-1.1 | OPENSUSE-SU-2026:10372-1 |
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.
A user input sanitization flaw has been discovered in the Black python code formatter. 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| psf | black | >= 24.3.0, < 26.3.1 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Ansible Automation Platform 2.5 | 1777393635 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2.5 | 1777403872 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | 1777390240 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | 1777387537 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | 1777299023 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | 1777387242 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | 1777390333 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776319193 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776319179 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776319185 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776318795 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776319453 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776336534 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776319275 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift Virtualization 4 | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
13- 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/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d
- https://github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9
- https://github.com/psf/black/pull/4176
- https://github.com/psf/black/pull/5038
- https://github.com/psf/black/releases/tag/26.3.1
- https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m
- 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
Provider assertions
3GitHub_M · cna
Black: Arbitrary file writes from unsanitized user input in cache file name
redhat-SADP · adp
black: Black: Arbitrary file writes from unsanitized user input in cache file name
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a8b7a166f0445137d0cdcb6bd2aa34024d0562a552a37c6064d5f6313b856291
- Ingested
- 23 Sep 2026, 09:10:00 UTC
- Source record
- Official CVE record