CVE-2026-54284
NoneCVSS
—
EPSS
0.3%
Published
Aug 17, 2026
CISA due date
—
Cloudanix analysis
A flaw in a Python SQL parsing library lets attackers send specially crafted queries that make the system use far too much processing power and slow down or stop responding.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
Repeated flattening of nested token subtrees in TokenList during group_parenthesis and group_case operations leads to quadratic CPU usage in sqlparse.parse, format, and split before depth limits apply.
Why it matters to the business
Attackers can trigger high CPU consumption that disrupts availability of services relying on SQL parsing, leading to degraded performance or outages, especially in environments with many dependent packages.
How an attack unfolds
An attacker supplies specially crafted SQL input containing deeply nested parentheses or CASE expressions that triggers repeated subtree flattening during parsing, exhausting CPU resources without authentication.
How to fix it
Upgrade sqlparse to version 0.6.0 or later; for Red Hat systems update to server-rhel9:1788205779 via RHSA-2026:61783.
How to confirm the fix worked
Confirm installed sqlparse version is at least 0.6.0; test parsing of deeply nested SQL inputs and verify CPU usage remains linear.
Typical attack path
- Identify an application endpoint or library call accepting untrusted SQL strings
- Craft input with excessive nesting to trigger quadratic behavior in sqlparse
- Submit the payload via sqlparse.parse, format, or split functions
- Observe sustained high CPU usage until processing limits are reached
How to detect it
Review application logs and process monitors for sustained high CPU during calls to sqlparse functions; correlate with incoming requests containing complex SQL structures.
What your security team should do
- Immediately upgrade all instances of sqlparse to the fixed version
- Scan dependency graphs for sqlparse usage across the environment
- Implement input length and complexity limits on SQL processing paths
- Monitor for unusual CPU spikes on services using sqlparse
The record
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by group_parenthesis and group_case, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split() before depth and token limits terminate processing. This issue is fixed in version 0.6.0.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-119741 rsync through 3.5.1 contains a denial of service vulnerability in the delta-transfer… CWE-407
- CVE-2026-121437 Mistune from 3.3.0 before 3.3.4 contains a denial of service vulnerability that allows… CWE-407
- CVE-2026-62160 Daptin is a GraphQL/JSON-API headless CMS. CWE-407
- CVE-2026-87768 DateTime::Lite versions before 0.8.1 for Perl allow CPU exhaustion via a per-day loop… CWE-407
- CVE-2026-119196 pyasn1 is a generic ASN.1 library for Python. CWE-407
- CVE-2026-119194 pyasn1 is a generic ASN.1 library for Python. CWE-407
- CVE-2026-119195 pyasn1 is a generic ASN.1 library for Python. CWE-407
- CVE-2026-119197 pyasn1 is a generic ASN.1 library for Python. CWE-407