THREATOPS
THREAT OPSThreat News › [GHSA] GHSA-pwgv-4x5q-6m9f (high) — sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger

[GHSA] GHSA-pwgv-4x5q-6m9f (high) — sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger

highgithub_advisoriesPublished 2026-08-17

GHSA-pwgv-4x5q-6m9f Severity: high CVE: CVE-2026-54284

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

### Summary

`sqlparse` ships hard limits (`MAX_GROUPING_DEPTH=100`, `MAX_GROUPING_TOKENS=10000`) intended to bound parsing work on attacker-supplied SQL, but the path that *reaches* those limits is itself `O(n*depth)` per to

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-pwgv-4x5q-6m9f