CVE-2026-59893

HIGH CVSS 3.1: 7.5 EPSS 0.34%
Updated Oct 23, 2026
Python
Parameter Value
CVSS 7.5 (HIGH)
Fixed In 0.6.0
Type CWE-1333 (Inefficient Regular Expression Complexity / ReDoS)
Vendor Python
Public PoC No

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1