Cloudanix VulnDB

CVE-2026-54284

None

CVSS

—

EPSS

0.3%

Published

Aug 17, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

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

  1. Identify an application endpoint or library call accepting untrusted SQL strings
  2. Craft input with excessive nesting to trigger quadratic behavior in sqlparse
  3. Submit the payload via sqlparse.parse, format, or split functions
  4. 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