CVE & CISA-KEV Catalog

CVE-2024-21503

MEDIUM
5.3
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
blackDebian
Fixed in:24.4.0-1CVE-2024-21503
Fixed in:24.4.0-1CVE-2024-21503
ansible-automation-platform-installerRed Hat / RHEL
Fixed in:0:2.4-7.1.el8apRHSA-2024:3781
Fixed in:0:2.4-7.1.el8apRHSA-2024:3781
Fixed in:0:2.4-7.1.el9apRHSA-2024:3781
Fixed in:0:2.4-7.1.el9apRHSA-2024:3781
ansible-automation-platform-installerRocky
Fixed in:0:2.4-7.1.el8apRHSA-2024:3781
Fixed in:0:2.4-7.1.el8apRHSA-2024:3781
Fixed in:0:2.4-7.1.el9apRHSA-2024:3781
Fixed in:0:2.4-7.1.el9apRHSA-2024:3781
ansible-coreRocky
Fixed in:1:2.15.11-1.el8apRHSA-2024:3781
Fixed in:1:2.15.11-1.el8apRHSA-2024:3781
Fixed in:1:2.15.11-1.el9apRHSA-2024:3781
Fixed in:1:2.15.11-1.el9apRHSA-2024:3781
ansible-coreRed Hat / RHEL
Fixed in:1:2.15.11-1.el8apRHSA-2024:3781
Fixed in:1:2.15.11-1.el8apRHSA-2024:3781
Fixed in:1:2.15.11-1.el9apRHSA-2024:3781
Fixed in:1:2.15.11-1.el9apRHSA-2024:3781
ansible-rulebookRed Hat / RHEL
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
ansible-rulebookRocky
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
ansible-testRocky
Fixed in:1:2.15.11-1.el8apRHSA-2024:3781
Fixed in:1:2.15.11-1.el9apRHSA-2024:3781
ansible-testRed Hat / RHEL
Fixed in:1:2.15.11-1.el8apRHSA-2024:3781
Fixed in:1:2.15.11-1.el9apRHSA-2024:3781
automation-controllerRocky
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controllerRed Hat / RHEL
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-cliRocky
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-cliRed Hat / RHEL
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-serverRocky
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-serverRed Hat / RHEL
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-uiRocky
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-uiRed Hat / RHEL
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-venv-towerRed Hat / RHEL
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-controller-venv-towerRocky
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el8apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
Fixed in:0:4.5.7-1.el9apRHSA-2024:3781
automation-eda-controllerRed Hat / RHEL
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
automation-eda-controllerRocky
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
automation-eda-controller-serverRocky
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
automation-eda-controller-serverRed Hat / RHEL
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
automation-eda-controller-uiRocky
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
automation-eda-controller-uiRed Hat / RHEL
Fixed in:0:1.0.7-1.el8apRHSA-2024:3781
Fixed in:0:1.0.7-1.el9apRHSA-2024:3781
automation-hubRed Hat / RHEL
Fixed in:0:4.9.2-1.el8apRHSA-2024:3781
Fixed in:0:4.9.2-1.el8apRHSA-2024:3781
Fixed in:0:4.9.2-1.el9apRHSA-2024:3781
Fixed in:0:4.9.2-1.el9apRHSA-2024:3781
automation-hubRocky
Fixed in:0:4.9.2-1.el8apRHSA-2024:3781
Fixed in:0:4.9.2-1.el8apRHSA-2024:3781
Fixed in:0:4.9.2-1.el9apRHSA-2024:3781
Fixed in:0:4.9.2-1.el9apRHSA-2024:3781
python-aiohttpRocky
Fixed in:0:3.9.5-1.el9apRHSA-2024:3781
python-aiohttpRed Hat / RHEL
Fixed in:0:3.9.5-1.el9apRHSA-2024:3781
python-aiohttp-debugsourceRocky
Fixed in:0:3.9.5-1.el9apRHSA-2024:3781
Fixed in:0:3.9.5-1.el9apRHSA-2024:3781
Fixed in:0:3.9.5-1.el9apRHSA-2024:3781
Fixed in:0:3.9.5-1.el9apRHSA-2024:3781

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploit Intelligence

0.98%probability of exploitation in 30 days
60thpercentile

Moderate risk: more likely to be exploited than 60% of all known CVEs.

References

Related Vulnerabilities

Other CWE-1333 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-3364High7.544%-Fix
CVE-2024-8124High7.540%-Fix
CVE-2024-25126Medium5.335%-Fix
CVE-2024-2651Medium6.533%-Fix
CVE-2021-32837High7.529%-Fix
CVE-2024-2829High7.526%-Fix

Common questions

How do I fix CVE-2024-21503?

Published advisories record a fix for 175 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2024-21503 being actively exploited?

Not that we know of. CVE-2024-21503 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.98% is the estimated probability that it will be exploited in the next 30 days. That is higher than 60% of all scored CVEs.

How severe is CVE-2024-21503?

CVE-2024-21503 has a CVSS v3 base score of 5.3, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2024-21503 affect?

Published advisories record a fix for black (Debian), ansible-automation-platform-installer (Red Hat / RHEL), ansible-automation-platform-installer (Rocky), ansible-core (Rocky), and 171 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2024-21503
CVE-2024-21503 severity badge

Markdown

[![CVE-2024-21503](https://tridentstack.com/cve/badge/CVE-2024-21503.svg)](https://tridentstack.com/cve/CVE-2024-21503)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-21503"><img src="https://tridentstack.com/cve/badge/CVE-2024-21503.svg" alt="CVE-2024-21503"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.