All reports
High

UBUNTU-CVE-2026-59893

Affected versions

Affected versions
<0.4.2-1ubuntu0.22.04.3
Fixed version
0.4.2-1ubuntu0.22.04.3
Affected versions
<0.4.4-1ubuntu0.2
Fixed version
0.4.4-1ubuntu0.2
Affected versions
<0.5.4-1ubuntu0.1
Fixed version
0.5.4-1ubuntu0.1
Affected versions
<0.2.4-0.1ubuntu0.1+esm1
Fixed version
0.2.4-0.1ubuntu0.1+esm1
Affected versions
<0.2.4-3ubuntu0.1+esm1
Fixed version
0.2.4-3ubuntu0.1+esm1

Description

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.

Links