Vulnerability details
CVE-2026-32274
Red Hat OpenShift LightspeedRed Hat Ansible Automation Platform Ansible Core 2Red Hat OpenShift AIRed Hat OpenShift Virtualization 4psf black
Black: Arbitrary file writes from unsanitized user input in cache file name
CVSS 4.0
8.7High
Official 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.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 8.7High | 4.0 | CVEProject cvelistV5 (CNA) (GitHub_M) | 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 |
| 7.5High | 3.1 | CVEProject cvelistV5 (CNA) (redhat-SADP) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| Red Hat | OpenShift Lightspeed | All | CVEProject cvelistV5 (CNA) |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | All | CVEProject cvelistV5 (CNA) |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | All | CVEProject cvelistV5 (CNA) |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | All | CVEProject cvelistV5 (CNA) |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | All | CVEProject cvelistV5 (CNA) |
| Red Hat | Red Hat OpenShift AI (RHOAI) | All | CVEProject cvelistV5 (CNA) |
| Red Hat | Red Hat OpenShift Virtualization 4 | All | CVEProject cvelistV5 (CNA) |
| psf | black | >= 24.3.0, < 26.3.1 | CVEProject cvelistV5 (CNA) |
References and advisories
13- https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m x_refsource_CONFIRM
- https://github.com/psf/black/pull/4176 x_refsource_MISC
- https://github.com/psf/black/pull/5038 x_refsource_MISC
- https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d x_refsource_MISC
- https://github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9 x_refsource_MISC
- https://github.com/psf/black/releases/tag/26.3.1 x_refsource_MISC
- https://github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2026-2121.yaml x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-32274 x_refsource_MISC
- https://bugzilla.redhat.com/show_bug.cgi?id=2447111 x_refsource_MISC
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32274.json x_refsource_MISC
- https://access.redhat.com/errata/RHSA-2026:13553 x_refsource_MISC
- https://access.redhat.com/errata/RHSA-2026:13545 x_refsource_MISC
- https://access.redhat.com/errata/RHSA-2026:10184 x_refsource_MISC
Kolun on Telegram @kolunsec
Exploited CVEs, key news and a daily digest
Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.
Details
- Published
- 2026-03-12
- Last updated
- 2026-08-04
- State
- Published
- Assigner (CNA)
- GitHub_M
Exploit prediction (EPSS)
0.69%
Probability of exploitation in 30 days
53%
Percentile (among all CVEs)
SSVC assessment (CISA)
- Automatable
- Yes
- Exploitation
- None
- Technical impact
- Partial
Weaknesses (CWE)
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')