CVE-2026-119371
Research article
SQLite Denial of Service via Deep CTE Chain in 3.54.0
| CVE | CVE-2026-119371 |
|---|---|
| Published | December 02, 2026 23:45 UTC |
| Research cut-off | December 02, 2026 23:35 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-11-03); CISA KEV catalog; vendor advisory page (sqlite.org); 1 vendor bulletin |
Executive summary
CVE-2026-119371 impacts SQLite versions up to 3.54.0, enabling attackers to trigger a denial of service by exploiting a flaw in how common table expressions (CTEs) are processed in recursive queries. The CVSS 3.1 score is 5.5 MEDIUM, scored by disclosure@vulncheck.com. The reviewed sources do not report exploitation. The main action is to update to the fixed version 3.54.0 [1].
Key points
- CVE-2026-119371 affects SQLite versions up to 3.54.0 [1].
- The vulnerability allows an attacker to trigger a denial of service by exploiting a flaw in how common table expressions (CTEs) are handled when a CTE chain exceeds the expression depth limit [3].
- The CVSS 3.1 score for this vulnerability is 5.5 MEDIUM, scored by disclosure@vulncheck.com (Secondary) [1].
- The reviewed sources do not report exploitation [2].
- The vulnerability is fixed in SQLite 3.54.0 [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 | CVSS 3.1 |
|---|---|---|---|---|---|
| CVE-2026-119371 | SQLite | SQLite | CWE-674 | 6.8 MEDIUM, scored by disclosure@vulncheck.com (Secondary) | 5.5 MEDIUM, scored by disclosure@vulncheck.com (Secondary) |
| Published | Last Modified | Record Status | |||
| 2026-10-30T12:16:35 | 2026-11-03T16:10:07 | Analyzed |
Vulnerability description
A flaw in SQLite allows an attacker to cause a denial of service by exploiting a vulnerability in how common table expressions (CTEs) are handled in recursive queries. This issue arises when a CTE chain exceeds the SQLITE_LIMIT_EXPR_DEPTH limit, leading to a stack overflow and subsequent segmentation fault [3].
Attack surface and exploitation prerequisites
According to the CVSS 3.1 vector, the attack requires local access (AV:L), no privileges (PR:N), and user interaction (UI:R) [1]. The vulnerability can be triggered through plain SQL or by a crafted database file containing a view with a deeply nested CTE chain [3].
Impact analysis
The vulnerability leads to a denial of service as it causes the SQLite process to crash due to stack exhaustion. The CVSS 3.1 vector indicates no impact on confidentiality (C:N), no impact on integrity (I:N), and high impact on availability (A:H) [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| SQLite < 3.54.0 | 3.54.0 |
Exploitation and threat intelligence status
CVE-2026-119371 is not listed in the CISA KEV catalog as of 2026-12-02. The reviewed sources do not report exploitation [2].
Detection and exposure assessment
The affected range is listed as versions below 3.54.0 [1]. There are no detection steps provided in the sources [3].
Remediation
The vulnerability is fixed in SQLite 3.54.0 [1]. The vulnerability can be mitigated by increasing the SQLITE_LIMIT_EXPR_DEPTH value or by applying a patch to the SQLite codebase [3].
Remediation checklist
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not provide a complete version range beyond what is listed.
- The sources do not establish whether the vulnerability is being actively exploited.
- The sources do not give indicators of compromise.
References
- CVE-2026-119371 record. NIST National Vulnerability Database (NVD), 2026-11-03. https://nvd.nist.gov/vuln/detail/CVE-2026-119371. Accessed 2026-12-02.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-02. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-02.
- Vendor advisory page (sqlite.org). sqlite.org. https://sqlite.org/bugs/info/2026-10-04T04:58:58Z. Accessed 2026-12-02.
- USN-9259-2: SQLite vulnerabilities. Ubuntu USN, 2026-12-02. https://ubuntu.com/security/notices/USN-9259-2. Accessed 2026-12-02.
Summary
USN-9259-1 fixed vulnerabilities in SQLite. This update provides the corresponding updates for Ubuntu 24.04 LTS. Original advisory details: It was discovered that SQLite did not count common table expressions against the expression depth limit. An attacker could possibly use this issue to cause SQLite to crash, resulting in a denial of service. (CVE-2026-119371) It was discovered that SQLite inco…
Severity breakdown
Medium · 6.8
An attacker without an account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-674: Uncontrolled Recursion
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| SQLite | < 3.54.0 | 3.54.0 |
Public exploits
Exploit available
References by type
Patches and fixed releases
- github.com/sqlite/sqlite/blob/version-3.53.4/src/select.c
- github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb
- sqlite.org/bugs/info/2026-10-04T04:58:58Z
- sqlite.org/src/info/f54730871303e655
- sqlite.org/releaselog/3_54_0.html
Other references
Frequently asked questions
What is CVE-2026-119371?
CVE-2026-119371 impacts SQLite versions up to 3.54.0, enabling attackers to trigger a denial of service by exploiting a flaw in how common table expressions (CTEs) are processed in recursive queries. The CVSS 3.1 score is 5.5 MEDIUM, scored by disclosure@vulncheck.com. The reviewed sources do not report exploitation. The main action is to update to the fixed version 3.54.0. Weakness type: Uncontrolled Recursion (CWE-674).
How severe is CVE-2026-119371?
CVE-2026-119371 has a CVSS 4.0 base score of 6.8 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something.
Is CVE-2026-119371 being exploited?
Not as far as is known: CVE-2026-119371 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. Exploit code or a proof of concept has been published, which makes attacks more likely. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-119371?
SQLite < 3.54.0 (fixed in 3.54.0).
How do I fix CVE-2026-119371?
Update SQLite to version 3.54.0 or later. Increasing the SQLITELIMITEXPRDEPTH value is mentioned as a mitigation in the sources; the advisory reports the CTE path does not count against this limit. Update to SQLite 3.54.0, which the NVD record lists as the fixed version.
Timeline & sources
References
Related vulnerabilities & news
- USN-9450-1: matio vulnerabilities
- CVE-2026-136612 — Red Hat OpenShift Service Mesh 3.2
- Ubuntu Issues Security Update for PyMongo Vulnerabilities Across Multiple Ubuntu Versions
- Ubuntu Netatalk Vulnerabilities Impact Multiple LTS Releases
- Ubuntu Patches Multiple mpv Vulnerabilities in USN-9455-1, Including a 2026 Playlist Flaw