Python Library sqlparse < 0.6.0 Multiple Vulnerabilities

high Nessus Plugin ID 338624

Synopsis

A Python library installed on the remote host is affected by multiple vulnerabilities.

Description

The version of the sqlparse Python library installed on the remote host is prior to 0.6.0. It is, therefore, affected by multiple vulnerabilities:

- A denial of service vulnerability exists in sqlparse due to the regular expressions used by the lexer to match dollar-quoted strings and multiline comments. An unauthenticated, remote attacker can exploit this, by supplying specially crafted SQL input, to cause catastrophic backtracking and exhaust available resources. (CVE-2026-59893)

- A denial of service vulnerability exists in sqlparse in the token list handling implemented in sqlparse/sql.py. An unauthenticated, remote attacker can exploit this, by supplying deeply nested SQL input, to consume excessive CPU and memory resources. (CVE-2026-54284)

- A denial of service vulnerability exists in sqlparse in the comment grouping logic implemented in sqlparse/engine/grouping.py. An unauthenticated, remote attacker can exploit this, by supplying specially crafted SQL input containing many comments, to consume excessive resources due to repeated rescanning of the token stream. (CVE-2026-71491)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to sqlparse version 0.6.0 or later.

See Also

http://www.nessus.org/u?0e5d5073

http://www.nessus.org/u?7bd9e3e2

http://www.nessus.org/u?b80d3f95

Plugin Details

Severity: High

ID: 338624

File Name: python_sqlparse_0_6_0.nasl

Version: 1.2

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 8/21/2026

Updated: 8/21/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.67

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-2026-59893

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

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

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 6.6

Threat Vector: CVSS:4.0/E:U

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

CVSS Score Source: CVE-2026-71491

Vulnerability Information

CPE: cpe:/a:sqlparse_project:sqlparse

Exploit Ease: No known exploits are available

Patch Publication Date: 8/13/2026

Vulnerability Publication Date: 8/17/2026

Reference Information

CVE: CVE-2026-54284, CVE-2026-59893, CVE-2026-71491

IAVA: 2026-A-0893