---
id: CVE-2026-119372
title: SQLite before 3.54.0 Use-After-Free in FTS3 fts3BestSnippet() via snippet()
summary: >-
  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 combini…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-416
vendor: SQLite
product: SQLite
affected:
  - SQLite < 3.54.0
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T11:30:38.453Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-119372'
references:
  - url: 'https://sqlite.org/bugs/info/2026-08-17T09:18:24Z'
  - url: 'https://sqlite.org/src/info/e4635c4153'
  - url: >-
      https://github.com/sqlite/sqlite/commit/a87bd2471a9c0606e78d3c3678bcd9cecaa0e731
  - url: >-
      https://github.com/sqlite/sqlite/blob/version-3.53.4/ext/fts3/fts3_snippet.c#L561
  - url: 'https://sqlite.org/releaselog/3_54_0.html'
  - url: 'https://abraxaslabs.tech/research/sqlite-fts3-snippet'
  - url: 'https://github.com/sqlite/sqlite'
  - url: >-
      https://www.vulncheck.com/advisories/sqlite-before-3.54.0-use-after-free-in-fts3-fts3bestsnippet-via-snippet
    label: >-
      VulnCheck Advisory: SQLite before 3.54.0 Use-After-Free in FTS3
      fts3BestSnippet() via snippet()
tags:
  - cve.org
epss: 0.00147
epssPercentile: 0.03976
ingestedAt: '2026-11-03T10:42:03.637Z'
---

## Overview

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.

## Affected

- `SQLite < 3.54.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
