Lucene search
+L

8 matches found

Github Security Blog
Github Security Blog
added 2026/08/17 5:49 p.m.21 views

sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger

Summary sqlparse ships hard limits MAXGROUPINGDEPTH=100, MAXGROUPINGTOKENS=10000 intended to bound parsing work on attacker-supplied SQL, but the path that reaches those limits is itself Ondepth per token-group construction. A 1-2 KB SQL payload e.g. SELECT 1 ... with 500-2000 nesting levels, or ...

8.7CVSS6.1AI score0.00263EPSS
SaveExploits0References3Affected Software1
Snyk
Snyk
added 2026/08/17 5:49 p.m.13 views

Regular Expression Denial of Service (ReDoS)

Overview Affected versions of this package are vulnerable to Regular Expression Denial of Service ReDoS via the grouptokens method in sqlparse/sql.py, which previously called strstart to recompute the value of a token group after extending it with subtokens. Because str on a TokenList recursively...

8.7CVSS6AI score0.00263EPSS
SaveExploits0References3
OSV
OSV
added 2026/08/17 5:49 p.m.11 views

GHSA-PWGV-4X5Q-6M9F sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger

Summary sqlparse ships hard limits MAXGROUPINGDEPTH=100, MAXGROUPINGTOKENS=10000 intended to bound parsing work on attacker-supplied SQL, but the path that reaches those limits is itself Ondepth per token-group construction. A 1-2 KB SQL payload e.g. SELECT 1 ... with 500-2000 nesting levels, or ...

8.7CVSS6.1AI score0.00263EPSS
SaveExploits0References3
EUVD
EUVD
added 2026/08/17 5:43 p.m.10 views

EUVD-2026-60313

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by groupparenthesis and groupcase, causing quadratic CPU consumption through sqlparse.parse,...

8.7CVSS5.7AI score0.00263EPSS
SaveExploits0References2
Cvelist
Cvelist
added 2026/08/17 5:43 p.m.50 views

CVE-2026-54284 sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by groupparenthesis and groupcase, causing quadratic CPU consumption through sqlparse.parse,...

8.7CVSS0.00263EPSS
SaveExploits0References2
ATTACKERKB
ATTACKERKB
added 2026/08/17 5:43 p.m.23 views

CVE-2026-54284

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by groupparenthesis and groupcase, causing quadratic CPU consumption through sqlparse.parse,...

8.7CVSS5.7AI score0.00263EPSS
SaveExploits0References3Affected Software1
CVE
CVE
added 2026/08/17 5:43 p.m.114 views

CVE-2026-54284

sqlparse versions before 0.6.0 have a CPU DoS flaw: TokenList.__init__ calls str(self), which recursively flattens the entire subtree on every group construction, producing O(n*d) cost. A ~2 KB deeply-nested SQL payload pins a worker for ~10 seconds (~5000x amplification). Flask-based SQL formatt...

8.7CVSS5.8AI score0.00263EPSS
SaveExploits0References2
Positive Technologies
Positive Technologies
added 2024/04/15 12:00 a.m.15 views

PT-2024-10474

Name of the Vulnerable Software and Affected Versions sqlparse affected versions not specified Description The issue is related to the sqlparse.parse function, which can lead to a Denial of Service due to a RecursionError when processing a heavily nested list. This can be exploited by a remote...

7.8CVSS7.1AI score0.03237EPSS
SaveExploits0References45
Rows per page
Query Builder