# CVE-2026-119371: SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-30 · Modified: 2026-10-30
- Aliases: DEBIAN-CVE-2026-119371, UBUNTU-CVE-2026-119371
- Record: https://cvemate.com/vulnerability/CVE-2026-119371 · JSON: https://cvemate.com/vulnerability/CVE-2026-119371/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.285%, percentile 22.491%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian sqlite3 (Debian): All versions (No fix recorded) \| \< 3.54.1-1
- ubuntu sqlite (Ubuntu): All versions (No fix recorded)
- ubuntu sqlite3 (Ubuntu): All versions (No fix recorded) \| \< 3.45.1-1ubuntu2.12 \| \< 3.46.1-9ubuntu0.5
- sqlite sqlite: \< 3.54.0

## References

- <https://sqlite.org/bugs/info/2026-10-04T04:58:58Z>
- <https://sqlite.org/src/info/f54730871303e655>
- <https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb>
- <https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L5754>
- <https://sqlite.org/releaselog/3_54_0.html>
- <https://abraxaslabs.tech/research/sqlite-cte-nest>
- <https://github.com/sqlite/sqlite>
- <https://www.vulncheck.com/advisories/sqlite-before-3.54.0-stack-exhaustion-via-cte-chain-in-selectexpander>
- <https://security-tracker.debian.org/tracker/CVE-2026-119371>
- <https://ubuntu.com/security/CVE-2026-119371>
- <https://www.cve.org/CVERecord?id=CVE-2026-119371>
- <https://ubuntu.com/security/notices/USN-9259-1>
- <https://ubuntu.com/security/notices/USN-9259-2>

---

Data as of 2026-12-05T05:00:24.373Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
