Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54284: CWE-407: Inefficient Algorithmic Complexity in andialbrecht sqlparse

0
High
VulnerabilityCVE-2026-54284cvecve-2026-54284cwe-407cwe-1333
Published: 08/17/2026 (08/17/2026, 17:43:48 UTC)
Source: CVE Database V5
Vendor/Project: andialbrecht
Product: sqlparse

Description

CVE-2026-54284 is a high severity vulnerability in the Python sqlparse module prior to version 0.6.0. The issue involves inefficient algorithmic complexity causing quadratic CPU consumption during token list construction and string conversion, which affects functions like sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This inefficiency is triggered by repeatedly flattening nested token subtrees. The vulnerability is fixed in sqlparse version 0.6.0.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

sqlparse
pkg:pypi/sqlparse
Affected versions
<0.6.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 18:11:35 UTC

Technical Analysis

The sqlparse Python module before version 0.6.0 suffers from inefficient algorithmic complexity (CWE-407) due to repeated flattening of nested token subtrees constructed by group_parenthesis and group_case. This leads to quadratic CPU consumption in key functions such as sqlparse.parse(), sqlparse.format(), and sqlparse.split(), potentially causing performance degradation or denial of service. The issue is resolved in version 0.6.0.

Potential Impact

The vulnerability causes excessive CPU consumption when processing certain SQL inputs, which can degrade performance or lead to denial of service conditions in applications using vulnerable versions of sqlparse. There is no indication of privilege escalation, data disclosure, or code execution impact.

Mitigation Recommendations

Upgrade to sqlparse version 0.6.0 or later, where this inefficiency has been fixed. No other mitigation or workaround is indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-12T17:46:37.292Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a834becbf8831d5394ecf7e

Added to database: 08/17/2026, 17:59:08 UTC

Last enriched: 08/17/2026, 18:11:35 UTC

Last updated: 08/17/2026, 18:25:38 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses