{"id":"CVE-2026-104692","kind":"vulnerability","aliases":["CVE-2026-104692"],"related":[],"title":"LibreOffice: crafted documents can run arbitrary Java code via HSQLDB","description":"LibreOffice bundles the HSQLDB database engine, which can be used through the generic JDBC database driver as well as through the support for embedded databases. HSQLDB lets SQL statements call Java methods, limited to the classes that are permitted. When HSQLDB was used through the generic JDBC driver this limit did not apply, so SQL in a crafted document could call any Java method and run code. In fixed versions SQL can call only the built-in functions of HSQLDB, whichever way the database is reached.","summary":"LibreOffice bundles the HSQLDB database engine, and when it was reached through the generic JDBC driver, the restriction on which Java classes SQL may call was not enforced. A crafted document can therefore make SQL execute any Java method, which runs code on the machine opening the document.","severity":"high","cvss":8.5,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["desktop","document-processing","libreoffice","package"],"not_affected_if":["unknown"],"how_to_check":"- Check the installed LibreOffice version via Help > About LibreOffice or `soffice --version`, and compare it with the fixed versions below.","fix":"- LibreOffice: fixed versions are not stated in the sources available; unknown\n- In fixed versions SQL can call only the built-in HSQLDB functions, whichever way the database is reached.","status":"open","published_at":"2026-11-16T17:17:27+00:00","first_seen_at":"2026-11-16T17:37:55+00:00","triaged_at":"2026-11-16T17:38:42+00:00","updated_at":"2026-11-16T17:38:42+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T17:38:42Z","model":"claude-haiku-5-5","output":{"fix":"- LibreOffice: fixed versions are not stated in the sources available; unknown\n- In fixed versions SQL can call only the built-in HSQLDB functions, whichever way the database is reached.","reach":"unknown","title":"LibreOffice: crafted documents can run arbitrary Java code via HSQLDB","impact":"high","summary":"LibreOffice bundles the HSQLDB database engine, and when it was reached through the generic JDBC driver, the restriction on which Java classes SQL may call was not enforced. A crafted document can therefore make SQL execute any Java method, which runs code on the machine opening the document.","audience":"businesses","category":"package","nicknames":[],"who_cares":["libreoffice","desktop","document-processing"],"confidence":0.6,"fix_status":"unknown","needs_auth":"no","worst_case":"Code runs on the machine opening a crafted document.","analyst_note":"Find the fixed LibreOffice versions and whether the default configuration reaches HSQLDB through JDBC, from the NVD entry or the vendor advisory.","how_to_check":"- Check the installed LibreOffice version via Help > About LibreOffice or `soffice --version`, and compare it with the fixed versions below.\n- unknown","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["unknown"],"who_is_affected":"Systems where LibreOffice is installed and opens documents from untrusted sources, such as on desktops, file servers or document-conversion pipelines. The sources describe the flaw as affecting use of HSQLDB through the generic JDBC driver; the sources do not say whether the default configuration uses it.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000763,"input_tokens":4615,"output_tokens":603,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-104692':13A,16A '-2026':12A,15A 'appli':123C 'arbitrari':6A 'built':147C 'built-in':146C 'bundl':24B,72C 'call':47B,100C,131C,143C 'class':44B,106C 'code':8A,64B,137C 'could':130C 'craft':2A,52B,128C 'cve':11A,14A 'databas':27B,75C,85C,95C,155C 'desktop':17B 'document':3A,19B,53B,70B,129C 'document-process':18B 'driver':38B,86C,118C 'embed':94C 'enforc':50B 'engin':28B,76C 'execut':58B 'fix':139C 'function':149C 'generic':36B,83C,116C 'hsqldb':10A,26B,74C,96C,111C,151C 'java':7A,43B,60B,101C,133C 'jdbc':37B,84C,117C 'let':97C 'libreoffic':1A,21B,23B,71C 'limit':103C,120C 'machin':67B 'make':56B 'may':46B 'method':61B,102C,134C 'open':68B 'packag':22B 'permit':109C 'process':20B 'reach':33B,157C 'restrict':40B 'run':5A,63B,136C 'sql':45B,57B,98C,125C,141C 'statement':99C 'support':92C 'therefor':55B 'use':80C,113C 'version':140C 'via':9A 'way':153C 'well':88C 'whichev':152C","nicknames":[],"mitigations":[],"who_affected":"Systems where LibreOffice is installed and opens documents from untrusted sources, such as on desktops, file servers or document-conversion pipelines. The sources describe the flaw as affecting use of HSQLDB through the generic JDBC driver; the sources do not say whether the default configuration uses it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["desktop","documentprocessing","high","libreoffice","package"],"campaign_type":null,"search_a":"'-104692':13A,16A '-2026':12A,15A 'arbitrari':6A 'code':8A 'craft':2A 'cve':11A,14A 'document':3A 'hsqldb':10A 'java':7A 'libreoffic':1A 'run':5A 'via':9A","search_b":"'bundl':24B 'call':47B 'class':44B 'code':64B 'craft':52B 'databas':27B 'desktop':17B 'document':19B,53B,70B 'document-process':18B 'driver':38B 'enforc':50B 'engin':28B 'execut':58B 'generic':36B 'hsqldb':26B 'java':43B,60B 'jdbc':37B 'libreoffic':21B,23B 'machin':67B 'make':56B 'may':46B 'method':61B 'open':68B 'packag':22B 'process':20B 'reach':33B 'restrict':40B 'run':63B 'sql':45B,57B 'therefor':55B","search_c":"'appli':123C 'built':147C 'built-in':146C 'bundl':72C 'call':100C,131C,143C 'class':106C 'code':137C 'could':130C 'craft':128C 'databas':75C,85C,95C,155C 'document':129C 'driver':86C,118C 'embed':94C 'engin':76C 'fix':139C 'function':149C 'generic':83C,116C 'hsqldb':74C,96C,111C,151C 'java':101C,133C 'jdbc':84C,117C 'let':97C 'libreoffic':71C 'limit':103C,120C 'method':102C,134C 'permit':109C 'reach':157C 'run':136C 'sql':98C,125C,141C 'statement':99C 'support':92C 'use':80C,113C 'version':140C 'way':153C 'well':88C 'whichev':152C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T17:17:27+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/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":"security@documentfoundation.org","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-104692","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104692","severity":null,"published_at":"2026-11-16T17:17:27+00:00","modified_at":"2026-11-16T17:17:27+00:00","first_seen_at":"2026-11-16T17:37:55+00:00","fetched_at":"2026-11-16T17:37:55+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"}