Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-119371— SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()

Quick assessment

Affected
SQLite SQLite
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在 SQLite 3.54.0 之前的版本中存在一个栈耗尽漏洞。攻击者可以利用该漏洞绕过 嵌套深度限制,因为公共表表达式(CTE)未被计入该限制。攻击者可以通过普通 SQL 语句或不信任的数据库文件中的视图,提供包含数万个 CTE 链式调用的 子句,从而引发无限制的 递归调用,最终导致进程崩溃。

CVSS 5.5 · Medium

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-119371

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
SQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
未经控制的递归
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
SQLite SQLite 0 ~ 3.54.0 -

II. Public POCs for CVE-2026-119371

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-119371

请登录查看更多情报信息。

Other References for CVE-2026-119371 (8)

Same Patch Batch · SQLite · 2026-10-30 · 11 CVEs total

CVE-2026-119586 7.8 HIGH SQLite CLI through 3.54.1 Command Injection via .recover Output
CVE-2026-119379 7.8 HIGH SQLite before 3.54.0 Heap Buffer Overflow via Session Extension sessionUpdateFind()
CVE-2026-119374 7.8 HIGH SQLite before 3.54.0 Heap Buffer Overflow via FTS5 fts5DoSecureDelete()
CVE-2026-119373 7.8 HIGH SQLite before 3.54.0 FTS5 Heap Buffer Overflow via fts5MergeRowidLists()
CVE-2026-119375 5.5 MEDIUM SQLite before 3.54.0 Information Disclosure via WAL Page Size Mismatch
CVE-2026-119591 5.5 MEDIUM SQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES Clause
CVE-2026-119372 5.5 MEDIUM SQLite before 3.54.0 Use-After-Free in FTS3 fts3BestSnippet() via snippet()
CVE-2026-119376 5.5 MEDIUM SQLite before 3.54.0 Stack Exhaustion via COLLATE Operator Chain
CVE-2026-119378 5.5 MEDIUM SQLite before 3.54.0 Use-After-Free in R-Tree nodeWrite()
CVE-2026-119377 2.5 LOW SQLite before 3.54.0 Authorizer Bypass via RIGHT or FULL JOIN USING

IV. Related Vulnerabilities