{"id":"CVE-2026-97999","kind":"vulnerability","aliases":["CVE-2026-97999"],"related":[],"title":"LibreOffice Base: heap overflow when migrating embedded HSQLDB databases","description":"LibreOffice Base documents can hold an embedded HSQLDB database. When the experimental features option is enabled, LibreOffice offers to migrate such a database to the embedded Firebird engine when the document is opened. A heap buffer overflow existed when binary values were copied during the migration, because a value could be longer than the space set aside for its column. In fixed versions that space is enlarged whenever a value is longer than its column.","summary":"When experimental features are enabled, opening a LibreOffice Base document with an embedded HSQLDB database can prompt a migration to Firebird, and binary values longer than their column overflow a heap buffer during the copy. The overflow can corrupt memory in the LibreOffice process, which an attacker can use to crash it or possibly run code.","severity":"medium","cvss":5.4,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"LibreOffice","fixed":[],"affected":"","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["desktop","documents","libreoffice","package"],"not_affected_if":["default-config","no-experimental-features"],"how_to_check":null,"fix":"In fixed versions the buffer is enlarged whenever a value is longer than its column; the fixed version numbers are not stated in the sources.","status":"open","published_at":"2026-11-16T17:17:55+00:00","first_seen_at":"2026-11-16T17:37:59+00:00","triaged_at":"2026-11-16T17:39:06+00:00","updated_at":"2026-11-16T17:39:06+00:00","category":"package","confidence":0.5,"triage":{"at":"2026-11-16T17:39:06Z","model":"claude-haiku-5-5","output":{"fix":"In fixed versions the buffer is enlarged whenever a value is longer than its column; the fixed version numbers are not stated in the sources.","reach":"local","title":"LibreOffice Base: heap overflow when migrating embedded HSQLDB databases","impact":"medium","summary":"When experimental features are enabled, opening a LibreOffice Base document with an embedded HSQLDB database can prompt a migration to Firebird, and binary values longer than their column overflow a heap buffer during the copy. The overflow can corrupt memory in the LibreOffice process, which an attacker can use to crash it or possibly run code.","audience":"everyone","category":"package","nicknames":[],"who_cares":["libreoffice","desktop","documents"],"confidence":0.5,"fix_status":"unknown","needs_auth":"no","worst_case":"memory corruption in LibreOffice could crash it or run code","analyst_note":"Confirm the fixed LibreOffice versions and the exact mitigation from the NVD record and the LibreOffice advisory.","how_to_check":"- unknown","plain_action":"","product_name":"LibreOffice","needs_analyst":true,"not_affected_if":["default-config","no-experimental-features"],"who_is_affected":"Only LibreOffice installations with the experimental features option turned on, when a user opens a Base document holding an embedded HSQLDB database and accepts the migration offer. Ordinary documents and default settings are not described as affected. unknown whether other paths trigger it.","user_interaction":"yes","product_ecosystem":"vendor","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000739,"input_tokens":4575,"output_tokens":563,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2026':11A,14A '-97999':12A,15A 'asid':133C 'attack':67B 'base':2A,29B,78C 'binari':43B,116C 'buffer':52B,112C 'code':76B 'column':48B,136C,151C 'copi':55B,119C 'corrupt':59B 'could':126C 'crash':71B 'cve':10A,13A 'databas':9A,35B,85C,99C 'desktop':17B 'document':18B,30B,79C,107C 'embed':7A,33B,83C,102C 'enabl':25B,92C 'engin':104C 'enlarg':143C 'exist':114C 'experiment':22B,88C 'featur':23B,89C 'firebird':41B,103C 'fix':138C 'heap':3A,51B,111C 'hold':81C 'hsqldb':8A,34B,84C 'libreoffic':1A,19B,28B,63B,77C,93C 'libreoffice':16A 'longer':45B,128C,148C 'memori':60B 'migrat':6A,39B,96C,122C 'offer':94C 'open':26B,109C 'option':90C 'overflow':4A,49B,57B,113C 'packag':20B 'possibl':74B 'process':64B 'prompt':37B 'run':75B 'set':132C 'space':131C,141C 'use':69B 'valu':44B,117C,125C,146C 'version':139C 'whenev':144C","nicknames":[],"mitigations":[],"who_affected":"Only LibreOffice installations with the experimental features option turned on, when a user opens a Base document holding an embedded HSQLDB database and accepts the migration offer. Ordinary documents and default settings are not described as affected. unknown whether other paths trigger it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"everyone","plain_action":null,"pkeys":["libreoffice"],"ptokens":["libreoffice"],"labels":["desktop","documents","libreoffice","medium","package","vendor"],"campaign_type":null,"search_a":"'-2026':11A,14A '-97999':12A,15A 'base':2A 'cve':10A,13A 'databas':9A 'embed':7A 'heap':3A 'hsqldb':8A 'libreoffic':1A 'libreoffice':16A 'migrat':6A 'overflow':4A","search_b":"'attack':67B 'base':29B 'binari':43B 'buffer':52B 'code':76B 'column':48B 'copi':55B 'corrupt':59B 'crash':71B 'databas':35B 'desktop':17B 'document':18B,30B 'embed':33B 'enabl':25B 'experiment':22B 'featur':23B 'firebird':41B 'heap':51B 'hsqldb':34B 'libreoffic':19B,28B,63B 'longer':45B 'memori':60B 'migrat':39B 'open':26B 'overflow':49B,57B 'packag':20B 'possibl':74B 'process':64B 'prompt':37B 'run':75B 'use':69B 'valu':44B","search_c":"'asid':133C 'base':78C 'binari':116C 'buffer':112C 'column':136C,151C 'copi':119C 'could':126C 'databas':85C,99C 'document':79C,107C 'embed':83C,102C 'enabl':92C 'engin':104C 'enlarg':143C 'exist':114C 'experiment':88C 'featur':89C 'firebird':103C 'fix':138C 'heap':111C 'hold':81C 'hsqldb':84C 'libreoffic':77C,93C 'longer':128C,148C 'migrat':96C,122C 'offer':94C 'open':109C 'option':90C 'overflow':113C 'set':132C 'space':131C,141C 'valu':117C,125C,146C 'version':139C 'whenev':144C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T17:17:55+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/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":"security@documentfoundation.org","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-97999","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97999","severity":null,"published_at":"2026-11-16T17:17:55+00:00","modified_at":"2026-11-16T17:17:55+00:00","first_seen_at":"2026-11-16T17:37:59+00:00","fetched_at":"2026-11-16T17:37:59+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}