Lucene search
+L

3 matches found

OSV
OSV
•added 2026/08/19 11:56 a.m.•8 views

PYSEC-2026-3699 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.2AI score0.00332EPSS
SaveExploits0References6
Github Security Blog
Github Security Blog
•added 2026/08/17 5:49 p.m.•25 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.00332EPSS
SaveExploits0References3Affected Software1
Github Security Blog
Github Security Blog
•added 2024/04/15 8:21 p.m.•78 views

sqlparse parsing heavily nested list leads to Denial of Service

Summary Passing a heavily nested list to sqlparse.parse leads to a Denial of Service due to RecursionError. Details + PoC Running the following code will raise Maximum recursion limit exceeded exception: py import sqlparse sqlparse.parse'' 10000 + '' 10000 We expect a traceback of RecursionError:...

7.5CVSS7.3AI score0.03237EPSS
SaveExploits0References5Affected Software1
Rows per page
Query Builder