{"id":"CVE-2026-119591","state":"PUBLISHED","title":"SQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES Clause","description":"SQLite before 3.54.0 contains a stack exhaustion vulnerability in countOfViewOptimization() that allows attackers to crash the host process via count(*) over a large multi-row VALUES clause. Attackers supplying SQL or a database file with a crafted view can trigger deeply nested TK_PLUS expressions whose recursive freeing in sqlite3ExprDeleteNN() exhausts the C stack, causing denial of service.","publishedAt":"2026-10-30T11:31:15.714Z","updatedAt":"2026-10-30T11:31:15.714Z","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","packageURL":"pkg:github/sqlite/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-04T05:34:47Z","https://sqlite.org/src/info/ab621a3e11ee4acc","https://github.com/sqlite/sqlite/commit/eff50a067c55f972909e7780e506e91382d08de2","https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L7199","https://sqlite.org/releaselog/3_54_0.html","https://abraxaslabs.tech/research/sqlite-values-union","https://github.com/sqlite/sqlite","https://www.vulncheck.com/advisories/sqlite-before-3.54.0-stack-exhaustion-via-countofviewoptimization-in-values-clause"],"weaknesses":["CWE-674"],"ingestedAt":"2026-10-30T11:38:06.457Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119591.json","commit":"caad128d12b89565fbbe034f6027c5d022a3f402","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119591","state":"PUBLISHED","datePublished":"2026-10-30T11:31:15.714Z","dateUpdated":"2026-10-30T11:31:15.714Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-30T11:20:35.123Z"},"containers":{"cna":{"title":"SQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES Clause","descriptions":[{"lang":"en","value":"SQLite before 3.54.0 contains a stack exhaustion vulnerability in countOfViewOptimization() that allows attackers to crash the host process via count(*) over a large multi-row VALUES clause. Attackers supplying SQL or a database file with a crafted view can trigger deeply nested TK_PLUS expressions whose recursive freeing in sqlite3ExprDeleteNN() exhausts the C stack, causing denial of service."}],"affected":[{"vendor":"SQLite","product":"SQLite","packageURL":"pkg:github/sqlite/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-04T05:34:47Z","tags":["issue-tracking"]},{"url":"https://sqlite.org/src/info/ab621a3e11ee4acc","tags":["patch"]},{"url":"https://github.com/sqlite/sqlite/commit/eff50a067c55f972909e7780e506e91382d08de2","tags":["patch"]},{"url":"https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L7199","tags":["technical-description"]},{"url":"https://sqlite.org/releaselog/3_54_0.html","tags":["release-notes"]},{"url":"https://abraxaslabs.tech/research/sqlite-values-union","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-countofviewoptimization-in-values-clause","name":"VulnCheck Advisory: SQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES Clause","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:31:15.714Z"},"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"}}}}}