CVE-2026-32274: Black: Arbitrary file writes from unsanitized user input in cache file name
psf · black
Vendor fix available · Affected: psf black · Exploitation: unlikely (under 1%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 53% of scored CVEs
DescriptionCVE.org
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.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- psf · black>= 24.3.0, < 26.3.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Unlikely (under 1%). EPSS under 1%, or no score yet.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- psf
- Published
- March 2026
CoverageNo articles yet
No CyberSIXT article names CVE-2026-32274 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-22cwe.mitre.org
- github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3mgithub.com
- github.com/psf/black/pull/4176github.com
- github.com/psf/black/pull/5038github.com
- github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798github.com
- github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447github.com
- access.redhat.com/errata/RHSA-2026:10184access.redhat.com
- access.redhat.com/errata/RHSA-2026:13545access.redhat.com
- access.redhat.com/errata/RHSA-2026:13553access.redhat.com
- access.redhat.com/security/cve/CVE-2026-32274access.redhat.com
- bugzilla.redhat.com/show_bug.cgi?id=2447111bugzilla.redhat.com
- github.com/psf/black/releases/tag/26.3.1github.com
- github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-20github.com
1 more reference is in the CVE record.