CVE-2026-32274

Source
https://cve.org/CVERecord?id=CVE-2026-32274
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-32274.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-32274
Aliases
Downstream
Related
Published
2026-03-12T19:47:07.464Z
Modified
2026-08-12T03:30:20.050949366Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Black: Arbitrary file writes from unsanitized user input in cache file name
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32274.json",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/psf/black

Affected ranges

Type
GIT
Repo
https://github.com/psf/black
Events
Database specific
Show details
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "24.3.0"
        },
        {
            "fixed": "26.3.1"
        }
    ]
}

Affected versions

24.*
24.10.0
24.3.0
24.4.0
24.4.1
24.4.2
24.8.0
25.*
25.1.0
25.11.0
25.12.0
25.9.0
26.*
26.1.0
26.3.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-32274.json"