CVE-2026-59893: CWE-1333: Inefficient Regular Expression Complexity in andialbrecht sqlparse
CVE-2026-59893 is a high severity vulnerability in the Python sqlparse module prior to version 0.6.0. It involves inefficient regular expression complexity causing quadratic CPU consumption when parsing certain SQL constructs such as unmatched dollar-quoted literals and multiline comments. This can lead to denial of service through excessive CPU usage during sqlparse.parse(), sqlparse.format(), and sqlparse.split() operations. The issue is fixed in version 0.6.0.
AI Analysis
Technical Summary
The sqlparse Python module versions before 0.6.0 contain a vulnerability (CWE-1333) due to inefficient regular expression handling and looping logic in sqlparse/keywords.py and sqlparse/lexer.py. Specifically, unmatched dollar-quoted literals and multiline-comment delimiters cause repeated scanning that leads to quadratic CPU consumption. This affects the functions sqlparse.parse(), sqlparse.format(), and sqlparse.split(), potentially allowing denial of service via resource exhaustion. The vulnerability is addressed in sqlparse version 0.6.0.
Potential Impact
Exploitation of this vulnerability can cause high CPU usage, resulting in denial of service conditions for applications using vulnerable versions of sqlparse. There is no impact on confidentiality or integrity, but availability is affected due to resource exhaustion.
Mitigation Recommendations
Upgrade to sqlparse version 0.6.0 or later, where this issue is fixed. No other mitigation or workaround is documented. Patch status is confirmed fixed in version 0.6.0.
CVE-2026-59893: CWE-1333: Inefficient Regular Expression Complexity in andialbrecht sqlparse
Description
CVE-2026-59893 is a high severity vulnerability in the Python sqlparse module prior to version 0.6.0. It involves inefficient regular expression complexity causing quadratic CPU consumption when parsing certain SQL constructs such as unmatched dollar-quoted literals and multiline comments. This can lead to denial of service through excessive CPU usage during sqlparse.parse(), sqlparse.format(), and sqlparse.split() operations. The issue is fixed in version 0.6.0.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The sqlparse Python module versions before 0.6.0 contain a vulnerability (CWE-1333) due to inefficient regular expression handling and looping logic in sqlparse/keywords.py and sqlparse/lexer.py. Specifically, unmatched dollar-quoted literals and multiline-comment delimiters cause repeated scanning that leads to quadratic CPU consumption. This affects the functions sqlparse.parse(), sqlparse.format(), and sqlparse.split(), potentially allowing denial of service via resource exhaustion. The vulnerability is addressed in sqlparse version 0.6.0.
Potential Impact
Exploitation of this vulnerability can cause high CPU usage, resulting in denial of service conditions for applications using vulnerable versions of sqlparse. There is no impact on confidentiality or integrity, but availability is affected due to resource exhaustion.
Mitigation Recommendations
Upgrade to sqlparse version 0.6.0 or later, where this issue is fixed. No other mitigation or workaround is documented. Patch status is confirmed fixed in version 0.6.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T16:40:07.983Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a834becbf8831d5394ecf95
Added to database: 08/17/2026, 17:59:08 UTC
Last enriched: 08/17/2026, 18:11:14 UTC
Last updated: 08/17/2026, 18:51:50 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.