CVE-2026-32274
Black: Arbitrary file writes from unsanitized user input in cache file name
7.5
HIGH
CVSS 3.1
EPSS 0.57%
描述
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.
如何修補 CVE-2026-32274
要修補 CVE-2026-32274,請將受影響套件升級到下列已修補版本。
- —升級至 26.3.1 或更新版本
- —升級至 26.3.1 或更新版本
CVE-2026-32274 正在被利用嗎?
低 — EPSS 為 0.6%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- from 0, < 26.3.1
- from 0, < 26.3.1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |