CVE-2026-119591
SQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES Clause
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| SQLite SQLite sqlite/sqlite
github |
≥ 0; < 3.54.0 (affected, custom)
Other versions: unaffected |
CNA: VulnCheck |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
NVD applicability configurations (1)
These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.
[
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*",
"versionEndExcluding": "3.54.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
]CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 6.8 medium |
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 | CNA: VulnCheck |
| 3.1 / 5.5 medium |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | CNA: VulnCheck |
| 4.0 / 6.8 medium |
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 | NVD: [email protected] |
| 3.1 / 5.5 medium |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD: [email protected] |
Exploit evidence
- https://sqlite.org/bugs/info/2026-10-04T05:34:47Z
exploit · ADP: CISA-ADP - https://abraxaslabs.tech/research/sqlite-values-union
exploit · [email protected]
References
- https://sqlite.org/bugs/info/2026-10-04T05:34:47ZCNA: VulnCheck · issue-tracking
- https://sqlite.org/src/info/ab621a3e11ee4accCNA: VulnCheck · patch
- https://github.com/sqlite/sqlite/commit/eff50a067c55f972909e7780e506e91382d08de2CNA: VulnCheck · patch
- https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L7199CNA: VulnCheck · technical-description
- https://sqlite.org/releaselog/3_54_0.htmlCNA: VulnCheck · release-notes
- https://abraxaslabs.tech/research/sqlite-values-unionCNA: VulnCheck · third-party-advisory
- https://github.com/sqlite/sqliteCNA: VulnCheck · product
- https://www.vulncheck.com/advisories/sqlite-before-3.54.0-stack-exhaustion-via-countofviewoptimization-in-values-clauseCNA: VulnCheck · third-party-advisory
- https://sqlite.org/bugs/info/2026-10-04T05:34:47ZADP: CISA-ADP · exploit
- https://abraxaslabs.tech/research/sqlite-values-union[email protected] · Exploit, Third Party Advisory
- https://github.com/sqlite/sqlite[email protected] · Product
- https://github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c#L7199[email protected] · Product
- https://github.com/sqlite/sqlite/commit/eff50a067c55f972909e7780e506e91382d08de2[email protected] · Patch
- https://sqlite.org/bugs/info/2026-10-04T05:34:47Z[email protected] · Issue Tracking, Vendor Advisory
- https://sqlite.org/releaselog/3_54_0.html[email protected] · Release Notes
- https://sqlite.org/src/info/ab621a3e11ee4acc[email protected] · Vendor Advisory
- https://www.vulncheck.com/advisories/sqlite-before-3.54.0-stack-exhaustion-via-countofviewoptimization-in-values-clause[email protected] · Third Party Advisory
- https://sqlite.org/bugs/info/2026-10-04T05:34:47Z134c704f-9b21-4f2e-91b3-4a467353bcc0 · Issue Tracking, Vendor Advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.