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
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.
| ID | VENDOR | PRODUCT | ACTION |
|---|---|---|---|
| 1 | psf | black | View |
| 2 | python | black | View |
| 3 | Red Hat | openshift_lightspeed:openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | View |
| 4 | Red Hat | red_hat_ansible_automation_platform_ansible_core_2:ansible-automation-platform-tech-preview/ee-minimal-rhel8 | View |
| 5 | Red Hat | red_hat_ansible_automation_platform_ansible_core_2:ansible-automation-platform/ee-minimal-rhel8 | View |
| 6 | Red Hat | red_hat_openshift_ai_(rhoai):rhoai/odh-model-registry-rhel8 | View |
| 7 | Red Hat | red_hat_openshift_virtualization_4:container-native-virtualization/vm-network-latency-checkup-rhel9 | View |
| 8 | Red Hat | Red Hat Ansible Automation Platform 2.5:registry.redhat.io/ansible-automation-platform-25/hub-rhel8@sha256:0e3dc99aa5566024f6db8870ff8280c029c3e308cecb25a65880c4414ce5a610_amd64 | View |
| 9 | Red Hat | Red Hat Ansible Automation Platform 2.6:registry.redhat.io/ansible-automation-platform-26/ansible-dev-tools-rhel9@sha256:05384905447e5c2974eda5cb9866696246f00ae4db42fa6de0dcfe4a1e89f46c_s390x | View |
| 10 | Red Hat | Red Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:76dd065e2a965de0e8914797b1ca71b92edbf1ac9acd110cc51b46c5fc826f42_amd64 | View |
| 11 | Red Hat | Red Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9@sha256:10f067e5a8b710ddb609b7864194da05a372c2c7641017e375e701988386b14e_amd64 | View |
| 12 | Red Hat | Red Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9@sha256:918d211643c68394121b0d6a9fd7b8330ffc48c78e575121b32deec050ce4ebe_arm64 | View |
| 13 | Red Hat | Red Hat OpenShift AI 2.25:registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:e9b02289119b8ad80a44cd9083d021714b02ec94f378ae9ae2661281d12be1b5_ppc64le | View |
| 14 | pypi | black | View |
| 15 | pypi | black | View |
| 16 | pypi | black | View |
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.
Red Hat VEX kaydına göre bu ürün etkilenmiyor.
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.
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.
| SCORE | VERSION | SEVERITY | VECTOR | SOURCE |
|---|---|---|---|---|
| 8.7 | CVSS V40 | HIGH | 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/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:X | NVD |
| 8.7 | CVSS 4.0 | — | Vector not published | GitHub Advisory |
| 8.7 | CVSS V4_0 | HIGH | 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 | CVE CNA |
| 7.5 | CVSS V31 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD |
| 7.5 | cvss_v3 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | Red Hat |
| 7.5 | CVSS 3.x | — | Vector not published | GitHub Advisory |
| 7.5 | CVSS V3_1 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | CVE ADP |
Patch and Remediation Guide
Solution & Remediation Advisory
7 düzeltme kanıtı bulundu; en az 7 ürün veya sürüm hâlâ etkileniyor ya da inceleniyor.
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 sourceBefore 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 sourceFor 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 sourceMitigation 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.
Will not fix
Affected
26.3.1GitLab Advisory düzeltilmiş sürüm: 26.3.1
Upgrade to version 26.3.1 or above.
26.3.1OSV düzeltilmiş sürüm: 26.3.1
Upgrade to version 26.3.1 or above.
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
Official Sources and Advisories
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"