DEBIAN-CVE-2024-21503

Source
https://security-tracker.debian.org/tracker/DEBIAN-CVE-2024-21503
Import Source
https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-21503.json
JSON Data
https://api.test.osv.dev/v1/vulns/DEBIAN-CVE-2024-21503
Upstream
Published
2024-03-19T05:15:09Z
Modified
2025-09-19T06:14:45Z
Summary
[none]
Details

Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lineswithleadingtabsexpanded 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.

References

Affected packages

Debian:13 / black

Package

Name
black
Purl
pkg:deb/debian/black?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
24.4.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:14 / black

Package

Name
black
Purl
pkg:deb/debian/black?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
24.4.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}