CVE-2026-119372

SQLite before 3.54.0 Use-After-Free in FTS3 fts3BestSnippet() via snippet()

Published Oct 30, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
SQLite before 3.54.0 built with FTS3/FTS4 and SQLITE_ENABLE_FTS3_PARENTHESIS contains a use-after-free vulnerability in fts3BestSnippet() caused by dangling cached position-list pointers. Attackers can run a full-text MATCH query combining OR and NEAR operators with snippet() to read freed heap memory and crash the process.

Analysis

AI-generated

Technical impact

The flaw is a use‑after‑free in fts3BestSnippet() triggered by a full‑text MATCH query that combines OR and NEAR operators with snippet(). When SQLite is built with FTS3/FTS4 and the optional SQLITE_ENABLE_FTS3_PARENTHESIS flag, the cached position‑list pointers can become dangling. An attacker that can execute a MATCH query can read memory that has already been freed and cause the process to crash. This can expose data that was on the heap and lead to a denial of service. The weakness is classified as CWE‑416 and CWE‑825.

Affected Systems

The issue is limited to SQLite libraries before version 3.54.0 that are configured with full‑text search (FTS3/FTS4) and enable the SQLITE_ENABLE_FTS3_PARENTHESIS option. The affected product is SQLite, any distribution or embedded system that links against a pre‑3.54.0 build. No specific operating systems are listed, so all platforms that use this older SQLite are potentially vulnerable.

Risk and Exploitability

The CVSS score of 6.8 indicates medium risk. The EPSS score of <1% indicates a very low chance that this vulnerability will be exploited in the wild, although the exact probability remains uncertain, and the lack of a KEV listing suggests no active exploitation in the wild as of today. The vulnerability requires the ability to issue a MATCH query that uses snippet() with OR and NEAR operators, so it is exploitable by adversaries that can run queries against the database. If successful, they can read freed heap memory or crash the database process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SQLite to version 3.54.0 or later, which includes the fix for this use‑after‑free issue.
  • If an upgrade is not immediately possible, refactor full‑text search queries to avoid invoking snippet() together with OR or NEAR operators, or disable the SQLITE_ENABLE_FTS3_PARENTHESIS flag in the build configuration.
  • Monitor database usage for unexpected crashes or memory corruption that might indicate exploitation attempts.

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 built with FTS3/FTS4 and SQLITE_ENABLE_FTS3_PARENTHESIS contains a use-after-free vulnerability in fts3BestSnippet() caused by dangling cached position-list pointers. Attackers can run a full-text MATCH query combining OR and NEAR operators with snippet() to read freed heap memory and crash the process.
Title SQLite before 3.54.0 Use-After-Free in FTS3 fts3BestSnippet() via snippet()
First Time appeared Sqlite
Sqlite sqlite
Weaknesses CWE-416
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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 4, 2026, 2:06 AM
Reserved
Oct 30, 2026, 12:39 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