{"id":"CVE-2026-119591","aliases":["AZL-111793","DEBIAN-CVE-2026-119591","EUVD-2026-113835","GHSA-24xm-6g3f-6mqq","UBUNTU-CVE-2026-119591","openSUSE-SU-2026:12493-1"],"status":"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.","severity":{"version":"4.0","score":6.8,"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00171,"percentile":0.06555,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-674"],"published":"2026-10-30T11:31:15Z","modified":"2026-11-09T13:42:16Z","affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.44.0-4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.40.1-2","3.40.1-2+deb12u1","3.40.1-2+deb12u2","3.42.0-1","3.43.0-1","3.43.1-1","3.43.2-1","3.44.0-1","3.44.2-1","3.45.0-1","3.45.1-1","3.45.2-1","3.45.3-1","3.45.3-2~exp1","3.46.0-1","3.46.1-1","3.46.1-2","3.46.1-2~exp","3.46.1-3","3.46.1-4","3.46.1-5","3.46.1-6","3.46.1-7","3.46.1-8","3.46.1-9","3.53.2-1","3.53.3-1","3.53.4-1","3.53.4-2","3.54.1-1","3.54.1-2"]},{"source":"osv","ecosystem":"Debian:13","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.46.1-7","3.46.1-7+deb13u1","3.46.1-7+deb13u2","3.46.1-8","3.46.1-9","3.53.2-1","3.53.3-1","3.53.4-1","3.53.4-2","3.54.1-1","3.54.1-2"]},{"source":"osv","ecosystem":"Debian:14","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.46.1-7","3.46.1-8","3.46.1-9","3.53.2-1","3.53.3-1","3.53.4-1","3.53.4-2","3.54.1-1","3.54.1-2"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.17-8fakesync1","2.8.17-9fakesync1","2.8.17-10ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.17-1ubuntu1","3.8.0.2-1ubuntu1","3.8.1-1ubuntu1","3.8.1-1ubuntu3","3.8.2-1ubuntu1","3.8.2-1ubuntu2","3.8.2-1ubuntu2.1","3.8.2-1ubuntu2.2","3.8.2-1ubuntu2.2+esm1","3.8.2-1ubuntu2.2+esm2","3.8.2-1ubuntu2.2+esm3","3.8.2-1ubuntu2.2+esm4","3.8.2-1ubuntu2.2+esm5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.8.11.1-1","3.9.1-2","3.9.2-1","3.10.0-1","3.10.1-1","3.10.2-1","3.11.0-1ubuntu1","3.11.0-1ubuntu1.1","3.11.0-1ubuntu1.2","3.11.0-1ubuntu1.3","3.11.0-1ubuntu1.4","3.11.0-1ubuntu1.5","3.11.0-1ubuntu1.5+esm1","3.11.0-1ubuntu1.5+esm2","3.11.0-1ubuntu1.5+esm3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.17-12fakesync1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.19.3-3","3.20.1-2","3.21.0-1","3.22.0-1","3.22.0-1ubuntu0.1","3.22.0-1ubuntu0.2","3.22.0-1ubuntu0.3","3.22.0-1ubuntu0.4","3.22.0-1ubuntu0.5","3.22.0-1ubuntu0.6","3.22.0-1ubuntu0.7","3.22.0-1ubuntu0.7+esm1","3.22.0-1ubuntu0.7+esm2","3.22.0-1ubuntu0.7+esm3"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.17-14fakesync1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29.0-2","3.30.1-1","3.30.1-1ubuntu1","3.31.1-1ubuntu1","3.31.1-3","3.31.1-4","3.31.1-4ubuntu0.1","3.31.1-4ubuntu0.2","3.31.1-4ubuntu0.3","3.31.1-4ubuntu0.4","3.31.1-4ubuntu0.5","3.31.1-4ubuntu0.6","3.31.1-4ubuntu0.7","3.31.1-4ubuntu0.7+esm1","3.31.1-4ubuntu0.7+esm2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.17-15fakesync1build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.17-15fakesync1build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.35.5-1","3.36.0-2","3.37.2-2","3.37.2-2ubuntu0.1","3.37.2-2ubuntu0.3","3.37.2-2ubuntu0.4","3.37.2-2ubuntu0.5","3.37.2-2ubuntu0.6","3.37.2-2ubuntu0.7","3.37.2-2ubuntu0.8"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.42.0-1","3.44.0-1","3.44.2-1","3.45.0-1","3.45.1-1","3.45.1-1ubuntu1","3.45.1-1ubuntu2","3.45.1-1ubuntu2.1","3.45.1-1ubuntu2.3","3.45.1-1ubuntu2.4","3.45.1-1ubuntu2.5","3.45.1-1ubuntu2.6","3.45.1-1ubuntu2.7","3.45.1-1ubuntu2.8","3.45.1-1ubuntu2.9"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.46.1-9","3.53.4-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.46.1-8","3.46.1-9","3.46.1-9ubuntu0.1","3.46.1-9ubuntu0.2","3.46.1-9ubuntu0.3"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.54.1-2.1"}]}],"bundled":10}],"products":[{"vendor":"sqlite","product":"sqlite"}],"references":[{"url":"https://sqlite.org/bugs/info/2026-10-04T05:34:47Z","tags":["issue-tracking","exploit","Issue Tracking","Vendor Advisory","report"]},{"url":"https://sqlite.org/src/info/ab621a3e11ee4acc","tags":["patch","Vendor Advisory","fix","report"]},{"url":"https://github.com/sqlite/sqlite/commit/eff50a067c55f972909e7780e506e91382d08de2","tags":["patch","Patch","fix","report"]},{"url":"https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L7199","tags":["technical-description","Product","article","report"]},{"url":"https://sqlite.org/releaselog/3_54_0.html","tags":["release-notes","Release Notes","advisory","report"]},{"url":"https://abraxaslabs.tech/research/sqlite-values-union","tags":["third-party-advisory","Exploit","Third Party Advisory","advisory","report"]},{"url":"https://github.com/sqlite/sqlite","tags":["product","Product","package","report"]},{"url":"https://www.vulncheck.com/advisories/sqlite-before-3.54.0-stack-exhaustion-via-countofviewoptimization-in-values-clause","tags":["third-party-advisory","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119591","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-24xm-6g3f-6mqq"},{"url":"https://sqlite.org/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119591.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-119591","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-119591","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-119591","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119371","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119372","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119373","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119374","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119375","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119376","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119377","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119378","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119379","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-119591","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2026-119591","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.","status":"published","published":"2026-10-30T11:31:15.714Z","modified":"2026-11-04T22:23:31.927Z","cvss":[{"version":"4.0","score":6.8,"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","level":"medium","assessor":"cna"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-674"],"updated_at":"2026-11-04T23:40:09.430928Z"}],"euvd":[{"id":"EUVD-2026-113835","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.","status":"published","published":"2026-10-30T11:31:15Z","modified":"2026-11-04T22:23:31Z","cvss":[{"version":"4.0","score":6.8,"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","level":"medium"}],"updated_at":"2026-11-04T23:47:18.620008Z"}],"ghsa":[{"id":"GHSA-24xm-6g3f-6mqq","title":"SQLite before 3.54.0 contains a stack exhaustion vulnerability in countOfViewOptimization() that...","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.","status":"published","published":"2026-10-30T12:31:22Z","modified":"2026-10-30T12:31:26Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"4.0","score":6.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"}],"cwes":["CWE-674"],"updated_at":"2026-11-02T15:14:42.307242Z"}],"nvd":[{"id":"CVE-2026-119591","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.","status":"published","published":"2026-10-30T12:16:44.873Z","modified":"2026-11-04T23:17:20.72Z","cvss":[{"version":"4.0","score":6.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"secondary"}],"cwes":["CWE-674"],"updated_at":"2026-11-05T01:45:13.601219Z"}],"osv":[{"id":"CVE-2026-119591","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.","status":"published","published":"2026-10-30T11:31:15.714Z","modified":"2026-11-09T13:42:16.175594114Z","cvss":[{"version":"4.0","score":6.8,"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","level":"medium"}],"cwes":["CWE-674"],"updated_at":"2026-11-09T14:01:18.614326Z"},{"id":"DEBIAN-CVE-2026-119591","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.","status":"published","published":"2026-10-30T12:16:44.873Z","modified":"2026-11-05T10:00:27.048857127Z","cvss":[{"version":"4.0","score":6.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"}],"updated_at":"2026-11-05T13:31:24.64316Z"},{"id":"UBUNTU-CVE-2026-119591","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.","status":"published","published":"2026-10-30T12:16:00Z","modified":"2026-11-05T04:42:52Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"4.0","score":6.8,"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","level":"medium"}],"updated_at":"2026-11-05T13:33:25.727744Z"},{"id":"AZL-111793","title":"CVE-2026-119591 affecting package sqlite 3.44.0-4","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.","status":"published","published":"2026-10-30T12:16:44Z","modified":"2026-11-05T05:40:51Z","updated_at":"2026-11-05T16:41:18.705965Z"},{"id":"openSUSE-SU-2026:12493-1","title":"lemon-3.54.1-2.1 on GA media","description":"These are all security issues fixed in the lemon-3.54.1-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-11-08T00:00:00Z","modified":"2026-11-09T13:30:04.270343566Z","updated_at":"2026-11-09T14:01:18.614326Z"}]}}
