Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-3936-cmfr-pm3m

Опубликовано: 12 мар. 2026
Источник: github
Github: Прошло ревью
CVSS4: 8.7

Описание

Black: Arbitrary file writes from unsanitized user input in cache file name

Impact

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.

Patches

Fixed in Black 26.3.1.

Workarounds

Do not allow untrusted user input into the value of the --python-cell-magics option.

Пакеты

Наименование

black

pip
Затронутые версииВерсия исправления

< 26.3.1

26.3.1

EPSS

Процентиль: 5%
0.00019
Низкий

8.7 High

CVSS4

Дефекты

CWE-22

Связанные уязвимости

CVSS3: 7.5
ubuntu
15 дней назад

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.

CVSS3: 7.5
redhat
15 дней назад

A user input sanitization flaw has been discovered in the Black python code formatter. 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.

CVSS3: 7.5
nvd
15 дней назад

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.

CVSS3: 7.5
debian
15 дней назад

Black is the uncompromising Python code formatter. Prior to 26.3.1, Bl ...

suse-cvrf
14 дней назад

Security update for python-black

EPSS

Процентиль: 5%
0.00019
Низкий

8.7 High

CVSS4

Дефекты

CWE-22