UBUNTU-CVE-2026-32274

Source
https://ubuntu.com/security/CVE-2026-32274
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32274.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-32274
Upstream
Published
2026-03-12T20:16:00Z
Modified
2026-03-20T08:06:54.344287Z
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
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:20.04:LTS / black

Package

Name
black
Purl
pkg:deb/ubuntu/black@19.3b0-1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

19.*
19.3b0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "black",
            "binary_version": "19.3b0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32274.json"

Ubuntu:22.04:LTS / black

Package

Name
black
Purl
pkg:deb/ubuntu/black@21.12b0-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.8b1-4
21.*
21.4b2-3
21.10b0-1
21.12b0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "black",
            "binary_version": "21.12b0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32274.json"

Ubuntu:24.04:LTS / black

Package

Name
black
Purl
pkg:deb/ubuntu/black@24.2.0-1ubuntu1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

23.*
23.7.0-1
23.10.1-1
23.11.0-1
24.*
24.2.0-1ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "black",
            "binary_version": "24.2.0-1ubuntu1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32274.json"

Ubuntu:25.10 / black

Package

Name
black
Purl
pkg:deb/ubuntu/black@25.1.0-3?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

25.*
25.1.0-2
25.1.0-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "black",
            "binary_version": "25.1.0-3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-32274.json"