Skip to main content
EPSS 0.3%top 75%

CVE-2026-59893: CWE-1333: Inefficient Regular Expression Complexity in andialbrecht sqlparse

0
High
Published: 08/17/2026 (08/17/2026, 18:17:00 UTC)
Source: CVE Database V5
Vendor/Project: andialbrecht
Product: sqlparse

Description

CVE-2026-59893 is a high-severity vulnerability in the Python sqlparse module prior to version 0.6.0. The issue 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. The vulnerability is fixed in sqlparse version 0.6.0.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

andialbrecht

sqlparse

Affected versions
<0.6.0
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: 09/24/2026, 06:49:49 UTC

Technical Analysis

The sqlparse Python module versions before 0.6.0 contain an inefficient regular expression handling issue (CWE-1333) in sqlparse/keywords.py and sqlparse/lexer.py. Specifically, the SQL_REGEX and the per-position loop repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption during calls to sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This inefficiency can be exploited to cause high CPU usage, leading to denial of service conditions. The vulnerability is resolved in version 0.6.0.

Potential Impact

This vulnerability can cause high CPU consumption when processing specially crafted SQL inputs, potentially leading to denial of service by exhausting system resources. There is no impact on confidentiality or integrity, only availability is affected.

Mitigation Recommendations

Upgrade sqlparse to version 0.6.0 or later, where this inefficient regular expression complexity issue is fixed. No other mitigations are 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-07-07T16:40:07.983Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a834becbf8831d5394ecf95

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

Last enriched: 09/24/2026, 06:49:49 UTC

Last updated: 10/01/2026, 14:51:08 UTC

Views: 61

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