CVE-2024-21503

black: Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the li...

CVE-2024-21503 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2024-21503, released March 19, 2024. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
5.3
medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0098
62nd percentile

Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service. Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.

Where it's fixed

ProductFixed inFixReleased
Linux
black · Debian 13.5 (trixie) 24.4.0-1 DEBIAN-CVE-2024-21503 Mar 19, 2024
black · Debian 14 24.4.0-1 DEBIAN-CVE-2024-21503 Mar 19, 2024
python-black · opensuse-leap 15.6 24.3.0-150400.9.8.1 SUSE-SU-2024:2481-1 Jul 15, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.