Denial of Service in sqlparse Python Module Affecting Andi Albrecht
CVE-2026-54284

8.7HIGH

Key Information:

Status
Vendor
CVE Published:
17 August 2026

What is CVE-2026-54284?

The sqlparse module, utilized for parsing SQL in Python applications, has a vulnerability in its TokenList construction and string conversion processes. This flaw can lead to excessive CPU consumption when dealing with nested token subtrees produced by group_parenthesis and group_case functions. Prior to version 0.6.0, attempts to parse or format complex SQL queries could lead to performance degradation, potentially resulting in a Denial of Service. The issue has been addressed in version 0.6.0, which mitigates the risk of excessive resource consumption.

Affected Version(s)

sqlparse < 0.6.0

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.