Vulnerability
CVE-2026-84305
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.
16 advisories report this vulnerability, across 7 ecosystems.
Advisories
- CGA-45f4-fc2x-q8f8
- CGA-5235-8c4v-9ff6
- CGA-fm45-86vh-cv44
- CGA-hc3h-pr2h-9hxg
- CGA-j475-833j-vx39
-
DEBIAN-CVE-2026-84305
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…
-
GHSA-cfqr-cjx5-5jcm
sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption
-
OESA-2026-4320
python-sqlparse security update
-
PYSEC-2026-3923
sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption
-
SUSE-SU-2026:23634-1
Security update for python-sqlparse
-
SUSE-SU-2026:3978-1
Security update for python-sqlparse
-
SUSE-SU-2026:4109-1
Security update for python-sqlparse
-
SUSE-SU-2026:4145-1
Security update for python-sqlparse
-
SUSEVEX-CVE-2026-84305
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…
-
UBUNTU-CVE-2026-84305
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…
-
openSUSE-SU-2026:21777-1
Security update for python-sqlparse