Back to the CVE list
CVE-2026-32274Suited to automated attack · CISA

Black: Arbitrary file writes from unsanitized user input in cache file name

CVSS score

8.7

EPSS probability

%0.7

Risk score

0.1

Published

7 mo ago

A patch is available only for some products or versions

Kanıt listesindeki ürün ve sürüm eşleşmesini kontrol edin; bazı varyantlar hâlâ etkileniyor olabilir.

Impact on My Inventory

Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.

Checking session…

Vulnerability description

DayBreach CVE AI Research

CVE-2026-32274 has vendor, distribution, patch and security-source records on file. We can compare them and prepare an explanation linked to the evidence.

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.

IMPACT: Affected Products and Software

Affected Products

The following products are affected by CVE-2026-32274 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.

IDVENDORPRODUCTACTION
1psfblack View
2pythonblack View
3Red Hatopenshift_lightspeed:openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 View
4Red Hatred_hat_ansible_automation_platform_ansible_core_2:ansible-automation-platform-tech-preview/ee-minimal-rhel8 View
5Red Hatred_hat_ansible_automation_platform_ansible_core_2:ansible-automation-platform/ee-minimal-rhel8 View
6Red Hatred_hat_openshift_ai_(rhoai):rhoai/odh-model-registry-rhel8 View
7Red Hatred_hat_openshift_virtualization_4:container-native-virtualization/vm-network-latency-checkup-rhel9 View
8Red HatRed Hat Ansible Automation Platform 2.5:registry.redhat.io/ansible-automation-platform-25/hub-rhel8@sha256:0e3dc99aa5566024f6db8870ff8280c029c3e308cecb25a65880c4414ce5a610_amd64 View
9Red HatRed Hat Ansible Automation Platform 2.6:registry.redhat.io/ansible-automation-platform-26/ansible-dev-tools-rhel9@sha256:05384905447e5c2974eda5cb9866696246f00ae4db42fa6de0dcfe4a1e89f46c_s390x View
10Red HatRed Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:76dd065e2a965de0e8914797b1ca71b92edbf1ac9acd110cc51b46c5fc826f42_amd64 View
11Red HatRed Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9@sha256:10f067e5a8b710ddb609b7864194da05a372c2c7641017e375e701988386b14e_amd64 View
12Red HatRed Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9@sha256:918d211643c68394121b0d6a9fd7b8330ffc48c78e575121b32deec050ce4ebe_arm64 View
13Red HatRed Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:e9b02289119b8ad80a44cd9083d021714b02ec94f378ae9ae2661281d12be1b5_ppc64le View
14pypiblack View
15pypiblack View
16pypiblack View
Total affected vendors: 4|Products: 16

RED HAT CSAF/VEX: Product Impact Check

Does this CVE affect my Red Hat product?

The results come directly from the Red Hat CSAF VEX product status; they are not estimates.

Not affected

Red Hat VEX kaydına göre bu ürün etkilenmiyor.

SCORING: CVSS from Multiple Sources

CVSS Scores

The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.

SCOREVERSIONSEVERITYVECTORSOURCE
8.7CVSS V40HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD
8.7CVSS 4.0—Vector not publishedGitHub Advisory
8.7CVSS V4_0HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NCVE CNA
7.5CVSS V31HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NNVD
7.5cvss_v3HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NRed Hat
7.5CVSS 3.x—Vector not publishedGitHub Advisory
7.5CVSS V3_1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCVE ADP

Patch and Remediation Guide

Solution & Remediation Advisory

Partial patch

7 düzeltme kanıtı bulundu; en az 7 ürün veya sürüm hâlâ etkileniyor ya da inceleniyor.

nvd

NVD tarafından Patch olarak etiketlenmiş referans

Open source
nvd

NVD tarafından Patch olarak etiketlenmiş referans

Open source
redhat

Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5#Upgrading

Open source
redhat

Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.6#Upgrade

Open source
redhat

For Red Hat OpenShift AI 2.25.5 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/

Open source
redhat

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

redhat

Will not fix

redhat

Affected

gitlabpypi/black26.3.1

GitLab Advisory düzeltilmiş sürüm: 26.3.1

gitlab

Upgrade to version 26.3.1 or above.

osvblack26.3.1

OSV düzeltilmiş sürüm: 26.3.1

canonical

Upgrade to version 26.3.1 or above.

Confirm the affected product and version against the source evidence above.
Restrict access to internet-facing services and apply network segmentation.
Apply the official update named in the evidence only to the matching product and version.
Monitor server logs and network endpoints for signs of anomalous execution.

Public exploit and active exploitation status

Verified exploit intelligence

No verified public PoC, exploit repository or Metasploit module has been found for this CVE yet.

Weakness Classification and Attack Patterns (CWE & CAPEC)

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-32274 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-32274 weaknesses.

Attack Vector and Accessibility

ExposureAğ üzerinden
PermissionsGerekmiyor
UserGerekmiyor

Official Sources and Advisories

CVSS Vector Radar Chart

8.7 / 10
Attack VectorNetworkComplexityLowPrivilegesNoneUser Interact.NoneConfidentialityLowIntegrityNoneAvailabilityNone

Vulnerability Scoring Details

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
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone required
User InteractionNone required
Confidentiality (Gizlilik)Low
Integrity (Bütünlük)None
Availability (Erişilebilirlik)None

Kısmi yama

7 düzeltme kanıtı bulundu; en az 7 ürün veya sürüm hâlâ etkileniyor ya da inceleniyor.

Follow the vendor

P
psf logo
psf
P
python logo
python
RH
Red Hat logo
Red Hat
P
pypi logo
pypi

Weakness Type (CWE & CAPEC)

Similar Vulnerabilities

Get this vulnerability through the API

Affected products, version ranges, exploitation status and patch information in a single request, with a free key.

curl -H "x-api-key: $DAYBREACH_API_KEY" \
  "https://api.daybreach.dev/api/v1/intel/cves/CVE-2026-32274"