PoC Monitor
← All CVEs
CVE-2026-59893published 17 Aug 2026 17:41 UTCData: JSON · API

Andialbrecht sqlparse

sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service)

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-1333
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

andialbrecht sqlparse
  • < 0.6.0

Fixed in 0.6.0

Mitigation

Upgrade sqlparse to 0.6.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published17 Aug 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.