CVE-2026-119376

SQLite before 3.54.0 Stack Exhaustion via COLLATE Operator Chain

Published Oct 30, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
SQLite before 3.54.0 contains a stack exhaustion vulnerability that allows attackers to bypass the SQLITE_LIMIT_EXPR_DEPTH limit by chaining COLLATE postfix operators. Attackers can supply roughly 175,000 chained COLLATE operators in SQL or an untrusted database view to trigger unbounded recursion in sqlite3WalkExprNN() and crash the process.

Analysis

AI-generated

Technical impact

SQLite versions prior to 3.54.0 can exhaust the process stack by allowing a user to construct a chain of COLLATE postfix operators in a SQL statement or an untrusted database view. The chained operators trigger unbounded recursion in sqlite3WalkExprNN(), bypassing the SQLITE_LIMIT_EXPR_DEPTH limit and resulting in a process crash. This flaw gives an attacker the ability to cause a denial of service on any system that loads the vulnerable library and processes untrusted SQL input.

Affected Systems

The vulnerability affects all installations of SQLite that use a version earlier than 3.54.0. Any application or environment that loads the legacy library and accepts user‑supplied SQL statements, including web, mobile, or embedded databases, is potentially impacted.

Risk and Exploitability

The CVSS v3 score of 6.8 indicates a medium severity risk. The EPSS score of < 1% suggests a very low likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The flaw is exploitable by feeding a long chain of COLLATE operators through SQL injection or by creating a malicious database view that contains the chain. An attacker therefore has a realistic path to crash the database process and disrupt availability, provided they control or influence the SQL sent to the database.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the SQLite library to version 3.54.0 or later, ensuring the patch is applied in all environments.
  • Validate or sanitize all user‑supplied SQL or view definitions to prevent the construction of excessive COLLATE chains, or remove untrusted view definitions entirely.
  • Monitor database processes for stack consumption and consider configuring SQLITE_LIMIT_EXPR_DEPTH to a conservative value to contain potential recursion before it crashes the process.

Generated by OpenCVE AI on November 6, 2026 at 02:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SQLite before 3.54.0 contains a stack exhaustion vulnerability that allows attackers to bypass the SQLITE_LIMIT_EXPR_DEPTH limit by chaining COLLATE postfix operators. Attackers can supply roughly 175,000 chained COLLATE operators in SQL or an untrusted database view to trigger unbounded recursion in sqlite3WalkExprNN() and crash the process.
Title SQLite before 3.54.0 Stack Exhaustion via COLLATE Operator Chain
First Time appeared Sqlite
Sqlite sqlite
Weaknesses CWE-674
CPEs cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
Vendors & Products Sqlite
Sqlite sqlite
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_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'}

Weaknesses
  • CWE-674

    Uncontrolled Recursion

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 4, 2026, 2:07 AM
Reserved
Oct 30, 2026, 12:57 AM
Status
Modified
Published
Oct 30, 2026, 12:16 PM
Modified
Nov 4, 2026, 2:17 AM
Severity
Moderate
Public date
Oct 30, 2026, 11:30 AM