{"id":"CVE-2026-119371","state":"PUBLISHED","title":"SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()","description":"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.","publishedAt":"2026-10-30T11:30:37.740Z","updatedAt":"2026-10-30T15:51:05.359Z","severity":{"score":6.8,"label":"Medium","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["SQLite SQLite"],"affected":[{"vendor":"SQLite","product":"SQLite","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.54.0","versionType":"custom"}],"collectionURL":"https://sqlite.org/","repo":"https://github.com/sqlite/sqlite"}],"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"],"weaknesses":["CWE-674"],"ingestedAt":"2026-10-30T15:58:06.618Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119371.json","commit":"2b1b837cd89354d9c9a57d56e0640dc825b19235","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119371","state":"PUBLISHED","datePublished":"2026-10-30T11:30:37.740Z","dateUpdated":"2026-10-30T15:51:05.359Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-30T00:39:31.960Z"},"containers":{"cna":{"title":"SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"SQLite","product":"SQLite","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.54.0","versionType":"custom"}],"collectionURL":"https://sqlite.org/","repo":"https://github.com/sqlite/sqlite"}],"references":[{"url":"https://sqlite.org/bugs/info/2026-10-04T04:58:58Z","tags":["issue-tracking"]},{"url":"https://sqlite.org/src/info/f54730871303e655","tags":["patch"]},{"url":"https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb","tags":["patch"]},{"url":"https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L5754","tags":["technical-description"]},{"url":"https://sqlite.org/releaselog/3_54_0.html","tags":["release-notes"]},{"url":"https://abraxaslabs.tech/research/sqlite-cte-nest","tags":["third-party-advisory"]},{"url":"https://github.com/sqlite/sqlite","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/sqlite-before-3.54.0-stack-exhaustion-via-cte-chain-in-selectexpander","name":"VulnCheck Advisory: SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-674","lang":"en","description":"Uncontrolled Recursion","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-30T11:30:37.740Z"},"datePublic":"2026-10-04T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*","versionEndExcluding":"3.54.0"}]}]}],"credits":[{"lang":"en","value":"Ke Han","type":"finder"},{"lang":"en","value":"Abraxas Labs","type":"reporter"},{"lang":"en","value":"D. Richard Hipp","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-30T15:50:50.830999Z","id":"CVE-2026-119371","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-30T15:51:05.359Z"}}]}}}