Resource exhaustion in Sqlparse - #VU142414

 

Resource exhaustion in Sqlparse - #VU142414

Published: August 13, 2026


Vulnerability identifier: #VU142414
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-400
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to uncontrolled resource consumption in ReindentFilter when formatting attacker-controlled SQL with reindentation enabled. A remote attacker can supply a specially crafted parenthesized tuple-list input to cause a denial of service.

The issue is reachable through sqlparse.format(sql, reindent=True) and the sqlformat --reindent mode.


Affected software

Sqlparse

Remediation

Install security update from vendor's website.

Sqlparse - update to 0.6.0

External References

Related Security Bulletins