{"id":"CVE-2026-119372","state":"PUBLISHED","title":"SQLite before 3.54.0 Use-After-Free in FTS3 fts3BestSnippet() via snippet()","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.","publishedAt":"2026-10-30T11:30:38.453Z","updatedAt":"2026-10-30T11:30:38.453Z","severity":{"score":6.8,"label":"Medium","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["SQLite SQLite"],"affected":[{"vendor":"SQLite","product":"SQLite","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.54.0","versionType":"custom"}],"collectionURL":"https://sqlite.org/","repo":"https://github.com/sqlite/sqlite","platforms":["All platforms where SQLITE_ENABLE_FTS3 (or SQLITE_ENABLE_FTS4) and SQLITE_ENABLE_FTS3_PARENTHESIS are defined"]}],"references":["https://sqlite.org/bugs/info/2026-08-17T09:18:24Z","https://sqlite.org/src/info/e4635c4153","https://github.com/sqlite/sqlite/commit/a87bd2471a9c0606e78d3c3678bcd9cecaa0e731","https://github.com/sqlite/sqlite/blob/version-3.53.4/ext/fts3/fts3_snippet.c#L561","https://sqlite.org/releaselog/3_54_0.html","https://abraxaslabs.tech/research/sqlite-fts3-snippet","https://github.com/sqlite/sqlite","https://www.vulncheck.com/advisories/sqlite-before-3.54.0-use-after-free-in-fts3-fts3bestsnippet-via-snippet"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-30T11:38:06.457Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119372.json","commit":"caad128d12b89565fbbe034f6027c5d022a3f402","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119372","state":"PUBLISHED","datePublished":"2026-10-30T11:30:38.453Z","dateUpdated":"2026-10-30T11:30:38.453Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-30T00:39:32.365Z"},"containers":{"cna":{"title":"SQLite before 3.54.0 Use-After-Free in FTS3 fts3BestSnippet() via snippet()","descriptions":[{"lang":"en","value":"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":[{"vendor":"SQLite","product":"SQLite","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.54.0","versionType":"custom"}],"collectionURL":"https://sqlite.org/","repo":"https://github.com/sqlite/sqlite","platforms":["All platforms where SQLITE_ENABLE_FTS3 (or SQLITE_ENABLE_FTS4) and SQLITE_ENABLE_FTS3_PARENTHESIS are defined"]}],"references":[{"url":"https://sqlite.org/bugs/info/2026-08-17T09:18:24Z","tags":["issue-tracking"]},{"url":"https://sqlite.org/src/info/e4635c4153","tags":["patch"]},{"url":"https://github.com/sqlite/sqlite/commit/a87bd2471a9c0606e78d3c3678bcd9cecaa0e731","tags":["patch"]},{"url":"https://github.com/sqlite/sqlite/blob/version-3.53.4/ext/fts3/fts3_snippet.c#L561","tags":["technical-description"]},{"url":"https://sqlite.org/releaselog/3_54_0.html","tags":["release-notes"]},{"url":"https://abraxaslabs.tech/research/sqlite-fts3-snippet","tags":["third-party-advisory"]},{"url":"https://github.com/sqlite/sqlite","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/sqlite-before-3.54.0-use-after-free-in-fts3-fts3bestsnippet-via-snippet","name":"VulnCheck Advisory: SQLite before 3.54.0 Use-After-Free in FTS3 fts3BestSnippet() via snippet()","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-30T11:30:38.453Z"},"datePublic":"2026-08-17T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*","versionEndExcluding":"3.54.0"}]}]}],"credits":[{"lang":"en","value":"Marc Heuse","type":"finder"},{"lang":"en","value":"Abraxas Labs","type":"reporter"},{"lang":"en","value":"Dan Kennedy","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}