{"id":"CVE-2026-119378","kind":"vulnerability","aliases":["CVE-2026-119378"],"related":[],"title":"SQLite: R-Tree extension use-after-free lets crafted database crash or misbehave","description":"SQLite before 3.54.0 contains a use-after-free vulnerability in the R-Tree extension that allows attackers to make applications use freed heap memory by manipulating the %_node shadow table. Attackers can supply a database declaring %_node WITHOUT ROWID or with a RAISE(IGNORE) trigger so nodeWrite() hashes nodes as 0, crashing the process after node splits.","summary":"SQLite before 3.54.0 has a use-after-free bug in its R-Tree extension, triggered by a crafted database whose %_node shadow table is set up in a specific way. An attacker who can get an application to open such a database can make it use freed heap memory, crashing the process.","severity":"medium","cvss":6.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["embedded-databases","r-tree","runtime","sqlite"],"not_affected_if":["sqlite-3.54.0-or-later","trusted-databases-only"],"how_to_check":"- Run `sqlite3 --version` or check the bundled SQLite version of each application that opens databases\n- Look for R-Tree virtual tables in databases the application opens (unknown whether a specific query identifies them)","fix":"- SQLite: `3.54.0`","status":"open","published_at":"2026-10-30T12:16:36+00:00","first_seen_at":"2026-10-30T12:30:23+00:00","triaged_at":"2026-10-30T12:32:34+00:00","updated_at":"2026-10-30T12:32:34+00:00","category":"runtime","confidence":0.6,"triage":{"at":"2026-10-30T12:32:34Z","model":"claude-haiku-5-5","output":{"fix":"- SQLite: `3.54.0`","reach":"local","title":"SQLite: R-Tree extension use-after-free lets crafted database crash or misbehave","impact":"medium","summary":"SQLite before 3.54.0 has a use-after-free bug in its R-Tree extension, triggered by a crafted database whose %_node shadow table is set up in a specific way. An attacker who can get an application to open such a database can make it use freed heap memory, crashing the process.","audience":"developers","category":"runtime","nicknames":[],"who_cares":["sqlite","r-tree","embedded-databases"],"confidence":0.6,"fix_status":"available","needs_auth":"no","worst_case":"Attacker crashes the process via crafted database file","analyst_note":"","how_to_check":"- Run `sqlite3 --version` or check the bundled SQLite version of each application that opens databases\n- Look for R-Tree virtual tables in databases the application opens (unknown whether a specific query identifies them)","plain_action":"","needs_analyst":false,"not_affected_if":["sqlite-3.54.0-or-later","trusted-databases-only"],"who_is_affected":"Applications that link SQLite older than 3.54.0 with the R-Tree extension and open databases from untrusted sources can be affected. Sources do not say whether the R-Tree extension must be enabled by default in common builds, so unknown. Teams that only open their own trusted databases can likely deprioritise it.","user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000687,"input_tokens":4166,"output_tokens":540,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-119378':18A,21A '-2026':17A,20A '0':136C '3.54.0':32B,86C 'allow':101C 'applic':68B,105C 'attack':63B,102C,116C 'bug':39B 'contain':87C 'craft':11A,49B 'crash':13A,81B,137C 'cve':16A,19A 'databas':12A,24B,50B,73B,120C 'declar':121C 'embed':23B 'embedded-databas':22B 'extens':5A,45B,99C 'free':9A,38B,92C 'freed':78B,107C 'get':66B 'hash':133C 'heap':79B,108C 'ignor':129C 'let':10A 'make':75B,104C 'manipul':111C 'memori':80B,109C 'misbehav':15A 'node':52B,113C,122C,134C,141C 'nodewrit':132C 'open':70B 'process':83B,139C 'r':3A,26B,43B,97C 'r-tree':2A,25B,42B,96C 'rais':128C 'rowid':124C 'runtim':28B 'set':56B 'shadow':53B,114C 'specif':60B 'split':142C 'sqlite':1A,29B,30B,84C 'suppli':118C 'tabl':54B,115C 'tree':4A,27B,44B,98C 'trigger':46B,130C 'use':7A,36B,77B,90C,106C 'use-after-fre':6A,35B,89C 'vulner':93C 'way':61B 'whose':51B 'without':123C","nicknames":[],"mitigations":[],"who_affected":"Applications that link SQLite older than 3.54.0 with the R-Tree extension and open databases from untrusted sources can be affected. Sources do not say whether the R-Tree extension must be enabled by default in common builds, so unknown. Teams that only open their own trusted databases can likely deprioritise it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"first_public_at":"2026-10-30T12:16:36+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-119378","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119378","severity":null,"published_at":"2026-10-30T12:16:36+00:00","modified_at":"2026-10-30T12:16:36+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"}