SCA: security update for black (GHSA-fj7x-q9j7-g6q6)

medium Tenable Cloud Security Plugin ID 414554

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-21503)

See Also

https://github.com/advisories/GHSA-fj7x-q9j7-g6q6

Plugin Details

Severity: Medium

ID: 414554

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2024-21503

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/19/2024

Vulnerability Publication Date: 3/19/2024

Reference Information

CVE: CVE-2024-21503