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

exploitDog

redhat логотип

CVE-2026-32274

Опубликовано: 12 мар. 2026
Источник: redhat
CVSS3: 7.5
EPSS Низкий

Описание

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.

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.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/ee-supported-rhel9Not affected
Red Hat Ansible Automation Platform Ansible Core 2ansible-automation-platform/ee-minimal-rhel8Affected
Red Hat Ansible Automation Platform Ansible Core 2ansible-automation-platform/ee-minimal-rhel9Affected
Red Hat Ansible Automation Platform Ansible Core 2ansible-automation-platform-tech-preview/ee-minimal-rhel8Affected
Red Hat Ansible Automation Platform Ansible Core 2ansible-automation-platform-tech-preview/ee-minimal-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-agent-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-router-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-storage-initializer-rhel9Not affected

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-22
https://bugzilla.redhat.com/show_bug.cgi?id=2447111black: Black: Arbitrary file writes from unsanitized user input in cache file name

EPSS

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

7.5 High

CVSS3

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

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
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

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

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

EPSS

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

7.5 High

CVSS3