ubuntu-cve-2026-32274
Vulnerability from osv_ubuntu
Published
2026-03-12 20:16
Modified
2026-06-30 16:20
Summary
Details
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.
Severity
7.5 (High)
7.5 (High)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "black",
"binary_version": "19.3b0-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "black",
"purl": "pkg:deb/ubuntu/black@19.3b0-1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"19.3b0-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "black",
"binary_version": "21.12b0-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "black",
"purl": "pkg:deb/ubuntu/black@21.12b0-1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20.8b1-4",
"21.4b2-3",
"21.10b0-1",
"21.12b0-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "black",
"binary_version": "24.2.0-1ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "black",
"purl": "pkg:deb/ubuntu/black@24.2.0-1ubuntu1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"23.7.0-1",
"23.10.1-1",
"23.11.0-1",
"24.2.0-1ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "black",
"binary_version": "25.1.0-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "black",
"purl": "pkg:deb/ubuntu/black@25.1.0-3?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"25.1.0-2",
"25.1.0-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "black",
"binary_version": "26.3.1-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "black",
"purl": "pkg:deb/ubuntu/black@26.3.1-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"25.1.0-3",
"25.9.0-1",
"25.11.0-1",
"25.12.0-1",
"26.1.0-1",
"26.1.0-1build1",
"26.3.1-1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2026-32274",
"modified": "2026-06-30T16:20:54Z",
"published": "2026-03-12T20:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-32274"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-32274"
},
{
"type": "REPORT",
"url": "https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m"
},
{
"type": "REPORT",
"url": "https://github.com/psf/black/pull/5038"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-32274"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
Loading…
Loading…