{"id":"CVE-2026-119372","kind":"vulnerability","aliases":["CVE-2026-119372"],"related":[],"title":"SQLite: FTS3 snippet use-after-free lets a query crash the process","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.","summary":"SQLite builds with FTS3/FTS4 and SQLITE_ENABLE_FTS3_PARENTHESIS have a use-after-free in fts3BestSnippet() caused by dangling cached position-list pointers. A crafted full-text MATCH query using OR and NEAR with snippet() can read freed heap memory and crash the process.","severity":"medium","cvss":6.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["c","embedded","full-text-search","package","sqlite"],"not_affected_if":["default-config","no-fts3-fts4","no-untrusted-queries"],"how_to_check":"- Check the SQLite version your application links against, for example `sqlite3 --version`, and compare it with the fixed release.\n- Check whether the build defines `SQLITE_ENABLE_FTS3_PARENTHESIS` and uses FTS3 or FTS4 tables.","fix":"- SQLite versions before `3.54.0`: move to `3.54.0` or later.","status":"open","published_at":"2026-10-30T12:16:35+00:00","first_seen_at":"2026-10-30T12:30:23+00:00","triaged_at":"2026-10-30T12:32:37+00:00","updated_at":"2026-10-30T12:32:37+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-30T12:32:37Z","model":"claude-haiku-5-5","output":{"fix":"- SQLite versions before `3.54.0`: move to `3.54.0` or later.","reach":"unknown","title":"SQLite: FTS3 snippet use-after-free lets a query crash the process","impact":"low","summary":"SQLite builds with FTS3/FTS4 and SQLITE_ENABLE_FTS3_PARENTHESIS have a use-after-free in fts3BestSnippet() caused by dangling cached position-list pointers. A crafted full-text MATCH query using OR and NEAR with snippet() can read freed heap memory and crash the process.","audience":"developers","category":"package","nicknames":[],"who_cares":["sqlite","c","embedded","full-text-search"],"confidence":0.6,"fix_status":"available","needs_auth":"unknown","worst_case":"Process crashes after reading freed heap memory during a search query","analyst_note":"","how_to_check":"- Check the SQLite version your application links against, for example `sqlite3 --version`, and compare it with the fixed release.\n- Check whether the build defines `SQLITE_ENABLE_FTS3_PARENTHESIS` and uses FTS3 or FTS4 tables.","plain_action":"","needs_analyst":false,"not_affected_if":["default-config","no-fts3-fts4","no-untrusted-queries"],"who_is_affected":"Only builds of SQLite before 3.54.0 that enable FTS3/FTS4 together with SQLITE_ENABLE_FTS3_PARENTHESIS are exposed. The attacker must be able to run a MATCH query with OR and NEAR against a FTS table and call snippet(), so applications that accept untrusted search input over such tables are the ones to look at. Applications on default builds or without FTS3/FTS4 can skip it.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000743,"input_tokens":4186,"output_tokens":648,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-119372':16A,19A '-2026':15A,18A '3.54.0':77C 'attack':103C 'build':29B 'built':78C 'c':20B 'cach':48B,98C 'caus':45B,95C 'combin':112C 'contain':86C 'craft':54B 'crash':11A,72B,125C 'cve':14A,17A 'dangl':47B,97C 'embed':21B 'enabl':34B,83C 'free':7A,42B,91C 'freed':68B,121C 'fts3':2A,35B,84C 'fts3/fts4':31B,80C 'fts3bestsnippet':44B,94C 'full':23B,56B,108C 'full-text':55B,107C 'full-text-search':22B 'heap':69B,122C 'let':8A 'list':51B,101C 'match':58B,110C 'memori':70B,123C 'near':63B,115C 'oper':116C 'packag':26B 'parenthesi':36B,85C 'pointer':52B,102C 'posit':50B,100C 'position-list':49B,99C 'process':13A,74B,127C 'queri':10A,59B,111C 'read':67B,120C 'run':105C 'search':25B 'snippet':3A,65B,118C 'sqlite':1A,27B,28B,33B,75C,82C 'text':24B,57B,109C 'use':5A,40B,60B,89C 'use-after-fre':4A,39B,88C 'vulner':92C","nicknames":[],"mitigations":[],"who_affected":"Only builds of SQLite before 3.54.0 that enable FTS3/FTS4 together with SQLITE_ENABLE_FTS3_PARENTHESIS are exposed. The attacker must be able to run a MATCH query with OR and NEAR against a FTS table and call snippet(), so applications that accept untrusted search input over such tables are the ones to look at. Applications on default builds or without FTS3/FTS4 can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"first_public_at":"2026-10-30T12:16:35+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-119372","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119372","severity":null,"published_at":"2026-10-30T12:16:35+00:00","modified_at":"2026-10-30T12:16:35+00:00","first_seen_at":"2026-10-30T12:30:23+00:00","fetched_at":"2026-10-30T12:30:23+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}