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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-674"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119371.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.54.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "e6ff280c839fdfc7418fd5add12e8f32702a17fb"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119371.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "241609994138439922484039255370357242254",
"length": 3910
},
"id": "CVE-2026-119371-4a2828a3",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb",
"target": {
"file": "src/select.c",
"function": "resolveFromTermToCte"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"3760297573612791538113703626777113237",
"113388051029726627214131909559711033233",
"157760407242046520769085117730096131170",
"49603996797654266138398766004197338450",
"22831505249559894437290763977077145162",
"98687312930109482319799194804308860699",
"68201898963356920489884894457526683985",
"306583758154412231484466198621866063234",
"337467949473032595160494187198212310218",
"169743753194568447906962818734305094792",
"27573301915128506688616374604358801708",
"101456781817426704687018134822086303682",
"172056417157968613608590608372592425843",
"295690996284515821446184205321650879877",
"326789812549468119299379210195792689926",
"212297071722780700165615450141500106656",
"118084487938227499655761311211694953710",
"225783886402260393569166980261179964352",
"250077161669752551509845653597857378343",
"194156481126589125811422747151439162855",
"298811466677743676965228872321508378123",
"165547265158070001076466610652147990469"
],
"threshold": 0.9
},
"id": "CVE-2026-119371-6485e703",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb",
"target": {
"file": "src/select.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "326344885926748657449481361391335986558",
"length": 1041
},
"id": "CVE-2026-119371-e8308d75",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb",
"target": {
"file": "src/select.c",
"function": "sqlite3ResultSetOfSelect"
}
}
]
"2026-11-05T07:59:54Z"