SB20261125103 - Path traversal in black
Published: November 25, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Path traversal (CVE-ID: CVE-2026-32274)
CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSSv4: 6.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a local user to write cache files to arbitrary locations permitted by the Black process's filesystem permissions.
The vulnerability exists due to improper path restriction in Black's cache filename generation when it incorporates the unsanitized value of the --python-cell-magics option. A local user can control that option's value to redirect cache writes outside the intended cache directory.
Remediation
Install update from vendor's website.