Echo: sqlparse: security update to 0.6.0

medium Tenable Cloud Security Plugin ID 459136

Description

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

- sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql,
reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through
ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly
rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree,
producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request
delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0. (CVE-2026-84305)

Solution

Update the sqlparse library and its related packages to version 0.6.0 or later.

See Also

https://advisory.echohq.com/cve/CVE-2026-84305

Plugin Details

Severity: Medium

ID: 459136

Version: Revision 1.1

Type: Local

Published: 10/2/2026

Updated: 10/5/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

CVSS v2

Risk Factor: Low

Base Score: 2.1

Temporal Score: 1.6

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

CVSS Score Source: CVE-2026-84305

CVSS v3

Risk Factor: Medium

Base Score: 4

Temporal Score: 3.5

Vector: CVSS:3.0/AV:L/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

CVSS v4

Risk Factor: Medium

Base Score: 5.1

Threat Score: 1.2

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 9/3/2026

Vulnerability Publication Date: 9/1/2026

Reference Information

CVE: CVE-2026-84305