{"id":"CVE-2026-119371","aliases":["CVE-2026-119371","BIT-SQLITE-2026-119371"],"related":[],"kind":"vulnerability","state":"published","title":"SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-30T11:30:37.740Z","modified":"2026-11-17T13:30:15.887Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.8,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"3.54.0","status":"affected"}],"vendor":"SQLite","product":"SQLite","repo":"https://github.com/sqlite/sqlite","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.54.0"}],"vendor":"sqlite","product":"sqlite","cpe":"cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.54.0"}],"ecosystem":"Bitnami","package":"sqlite","purl":"pkg:bitnami/sqlite","source":"bitnami"}],"references":[{"url":"https://sqlite.org/bugs/info/2026-10-04T04:58:58Z","tags":["advisory","issue-tracking","patch","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://sqlite.org/src/info/f54730871303e655","tags":["advisory","patch","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb","tags":["fix","patch"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L5754","tags":["fix","patch","technical-description"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://sqlite.org/releaselog/3_54_0.html","tags":["article","release-notes"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://abraxaslabs.tech/research/sqlite-cte-nest","tags":["advisory","exploit","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/sqlite/sqlite","tags":["product","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.vulncheck.com/advisories/sqlite-before-3.54.0-stack-exhaustion-via-cte-chain-in-selectexpander","tags":["advisory","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119371","tags":["web"],"sources":["bitnami"]}],"credits":["Ke Han","Abraxas Labs","D. Richard Hipp"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-30T15:50:50.830Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-119371","url":"https://www.cve.org/CVERecord?id=CVE-2026-119371","licence":"CVE Terms of Use","modified":"2026-10-30T15:51:05.359Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-119371","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119371","licence":"Public domain","modified":"2026-11-03T16:10:07.230Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SQLITE-2026-119371","url":"https://osv.dev/vulnerability/BIT-SQLITE-2026-119371","licence":"Apache-2.0","modified":"2026-11-17T13:30:15.887Z"}],"updatedAt":"2026-11-25T22:59:47.905Z","epss":{"score":0.00285,"percentile":0.22545,"date":"2026-12-01T12:00:22.000Z"}}