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

ScoreVersionSourceVector
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

VendorProductVersionsSource
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
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-22
    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')