PT-2026-84379

CVE-2026-84305

·

Published

2026-08-13

·

Updated

2026-10-16

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions sqlparse versions prior to 0.6.0
Description An issue exists when SQL is formatted with reindentation enabled, where the ReindentFilter repeatedly rebuilds prefixes of the current statement to calculate token offsets. An attacker providing a crafted parenthesized tuple list can trigger thousands of offset calculations that traverse an expanding token tree. This results in quadratic CPU consumption, leading to request delays, reduced throughput, or worker starvation. The issue is triggered via the sqlparse.format(sql, reindent=True) function and the sqlformat --reindent command, specifically within the ReindentFilter. get offset() function and the flatten up to token() process in sqlparse/filters/reindent.py.
Recommendations Update sqlparse to version 0.6.0. As a temporary workaround, avoid using the reindent=True parameter in the sqlparse.format() function or the --reindent option in the sqlformat command when processing attacker-controlled input.
Exploitability
Exploit
Fix
Vendors
Affected products
Related identifiers
GHSA-CFQR-CJX5-5JCM
CLEANSTART-2026-EC11110
CLEANSTART-2026-JF73384
CLEANSTART-2026-UP48732
CLEANSTART-2026-WG08246
ECHO-8E2D-935C-D158
OESA-2026-4320
OPENSUSE-SU-2026:21777-1
PYSEC-2026-3923
RHLW-2026-7CB565D499929657
SUSE-SU-2026:23634-1
SUSE-SU-2026:3978-1
SUSE-SU-2026:4109-1
SUSE-SU-2026:4145-1
Found an issue in the description? Have something to add? Feel free to write us 👾