CVE-2026-32274

7.5 HIGH
Published: March 12, 2026 Modified: March 18, 2026
View on NVD

Description

Black is the uncompromising Python code formatter. Prior to 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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/psf/black/pull/5038
Source: security-advisories@github.com
Issue Tracking Patch
https://github.com/psf/black/releases/tag/26.3.1
Source: security-advisories@github.com
Release Notes
https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m
Source: security-advisories@github.com
Vendor Advisory

4 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.5 / 10.0
EPSS (Exploit Probability)
0.0%
5th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

python