SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SQLiteSQLite |
< 3.54.0→ 3.54.0 |
3.54.0 |
| Bitnamisqlite |
< 3.54.0→ 3.54.0 |
3.54.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-119371 sqlite3 Fix available
- Ubuntu UBUNTU-CVE-2026-119371 sqlite3 Fix available
Original description The description as published by the source.
SQLite before 3.54.0 contains a stack exhaustion vulnerability that allows attackers to bypass the SQLITE_LIMIT_EXPR_DEPTH nesting limit because common table expressions are not counted against it. Attackers can supply a WITH clause chaining tens of thousands of CTEs, via plain SQL or a view in an untrusted database file, causing unbounded selectExpander() recursion that crashes the process.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory sqlite.org
- advisory abraxaslabs.tech
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch sqlite.org
- patch github.com
- report sqlite.org
- web github.com
- web github.com
- web sqlite.org