
CVE catalog
CVE-2026-32274
Black is the uncompromising Python code formatter…
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.
- Severity
- High · CVSS 8.7
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.63% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "black",
"status": "fixed",
"release": "sid",
"version": "26.10.1-1"
},
{
"name": "black",
"status": "fixed",
"release": "forky",
"version": "26.10.1-1"
},
{
"name": "black",
"status": "fixed",
"release": "trixie",
"version": "25.1.0-3+deb13u1"
},
{
"name": "black",
"status": "vulnerable",
"release": "bookworm",
"version": "23.1.0-1"
}
],
"fixed_versions": [
{
"bug": 1130657,
"name": "black",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "26.3.1-1"
},
{
"bug": 1130657,
"name": "black",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "26.3.1-1"
},
{
"bug": 1130657,
"name": "black",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "25.1.0-3+deb13u1"
},
{
"bug": 1130657,
"name": "black",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "black",
"ecosystem": "pip",
"fixed_version": "26.3.1"
},
{
"name": "black",
"ecosystem": "cpe",
"fixed_version": "not yet fixed"
},
{
"name": "ansible-lint",
"distro": "opensuse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "26.9.0-1.1"
}
]
}
],
"release": "tumbleweed",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "26.9.0-1.1",
"provider_record_id": "OPENSUSE-SU-2026:11856-1"
},
{
"name": "python-black",
"distro": "opensuse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "24.3.0-150400.9.11.1"
}
]
}
],
"release": "leap 15.6",
"versions": [],
"ecosystem": "rpm",
"fixed_version": "24.3.0-150400.9.11.1",
"provider_record_id": "SUSE-SU-2026:0900-1"
}
]
}Publisher notes
[bookworm] black: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [black]Unknown
Details (2)
23.1.0-1· all · bookwormAffected
nvd · black · debian · bookworm; nvd · black · debian · 12
23.1.0-1· all · bookwormAffected
nvd · black · debian · bookworm; nvd · black · debian · 12
- [python-black-doc]Unknown
Source package: [black]
Details (2)
23.1.0-1· all · bookwormAffected
nvd · black · debian · bookworm; nvd · black · debian · 12
23.1.0-1· all · bookwormAffected
nvd · black · debian · bookworm; nvd · black · debian · 12
[Debian 13 (Trixie)]
- [black]Unknown
Details (2)
25.1.0-3+deb13u1· amd64 · trixieFixed · Fixed:
25.1.0-3+deb13u1nvd · black · debian · 13
25.1.0-3+deb13u1· arm64 · trixieFixed · Fixed:
25.1.0-3+deb13u1nvd · black · debian · 13
- [python-black-doc]Unknown
Source package: [black]
Details (2)
25.1.0-3+deb13u1· all · trixieFixed · Fixed:
25.1.0-3+deb13u1nvd · black · debian · 13
25.1.0-3+deb13u1· all · trixieFixed · Fixed:
25.1.0-3+deb13u1nvd · black · debian · 13
[openSUSE Tumbleweed]
- [ansible-lint]Unknown
Source package: [ansible-lint]
Details (1)
26.8.0-1.1· noarch · tumbleweedAffected · Fixed:
26.9.0-1.1nvd · ansible-lint · opensuse · tumbleweed
Observed:
References
- [https://access.redhat.com/errata/RHSA-2026:10184]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_0900-1.json]
- [https://github.com/advisories/GHSA-3936-cmfr-pm3m]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-32274]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-32274]
- [https://osv.dev/vulnerability/SUSE-SU-2026:0900-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11856-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-32274]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3046.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]