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

exploitDog

github логотип

GHSA-3936-cmfr-pm3m

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

Описание

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
Затронутые версииВерсия исправления

>= 24.3.0, < 26.3.1

26.3.1

EPSS

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

8.7 High

CVSS4

7.5 High

CVSS3

Дефекты

CWE-22

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

CVSS3: 7.5
ubuntu
5 месяцев назад

Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 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
5 месяцев назад

Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 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
nvd
5 месяцев назад

Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 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
5 месяцев назад

Black is the uncompromising Python code formatter. Starting in version ...

suse-cvrf
5 месяцев назад

Security update for python-black

EPSS

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

8.7 High

CVSS4

7.5 High

CVSS3

Дефекты

CWE-22