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.
Published: 2026-10-30
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Information Disclosure and Crash
Action: Patch
AI Analysis

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.

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 is not available, so the current probability of exploitation is unknown, but 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.

Generated by OpenCVE AI on October 30, 2026 at 12:28 UTC.

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 October 30, 2026 at 12:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:38.453Z

Reserved: 2026-10-30T00:39:32.365Z

Link: CVE-2026-119372

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T12:16:35.873

Modified: 2026-10-30T12:16:35.873

Link: CVE-2026-119372

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T13:45:14Z

Weaknesses