{"id":"CVE-2026-104007","kind":"vulnerability","aliases":["CVE-2026-104007"],"related":[],"title":"LibreOffice: crafted database document makes it load attacker Java code","description":"LibreOffice can connect to databases through JDBC drivers written in Java. A spreadsheet can use a database as the source of a pivot table, and the database document that describes the connection names the driver to use. The location the driver was loaded from was taken from the database document itself, so a crafted document could make LibreOffice load and run Java code that the document supplied when it was opened. This is a different route to the problem fixed for CVE-2026-63277. In fixed versions the driver location is taken only from the driver configuration of the user, and a pivot table whose source is a database document named by a URL connects only once the user allows links to be updated.","summary":"LibreOffice takes the location of a JDBC driver from the database document itself, so a crafted document can make it load and run Java code the document supplies when opened. Opening a malicious spreadsheet or database file can run code on the user's machine.","severity":"high","cvss":8.5,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"LibreOffice","fixed":["26.2.7","26.8.2"],"affected":"< 26.2.7 (26.2 line), < 26.8.2 (26.8 line); first affected version not stated","ecosystem":"vendor"}],"ecosystems":[],"tags":["base","calc","desktop","java","jdbc","libreoffice","package"],"not_affected_if":["already-patched","java-not-installed"],"how_to_check":"Open Help > About in LibreOffice. If the version is older than 26.2.7 (26.2 line) or 26.8.2 (26.8 line), you are on a vulnerable build. The advisory does not give the first affected version, so treat earlier builds as affected unless the vendor says otherwise. Also check whether Java is enabled (Tools > Options > LibreOffice > Advanced > Use a Java runtime environment).","fix":"Upgrade to LibreOffice 26.2.7 (26.2 line) or 26.8.2 (26.8 line) or later. In fixed versions the JDBC driver location comes only from the user's own driver configuration. A pivot table whose source is a database document named by a URL connects only after the user allows links to be updated.","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:44+00:00","updated_at":"2026-11-16T17:42:12+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T17:38:44Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"local","title":"LibreOffice: crafted database document makes it load attacker Java code","impact":"high","summary":"LibreOffice takes the location of a JDBC driver from the database document itself, so a crafted document can make it load and run Java code the document supplies when opened. Opening a malicious spreadsheet or database file can run code on the user's machine.","audience":"everyone","category":"package","nicknames":[],"who_cares":["libreoffice","desktop"],"confidence":0.5,"fix_status":"unknown","needs_auth":"no","worst_case":"Attacker-supplied Java code runs on the user's computer when the document opens","analyst_note":"Confirm fixed LibreOffice versions and the Java/JDBC configuration needed to trigger it from the NVD entry or the LibreOffice advisory.","how_to_check":"unknown","plain_action":"Update LibreOffice to a fixed version and do not open spreadsheets or database files from unknown sources until you have.","product_name":"","needs_analyst":true,"not_affected_if":["java-not-installed"],"who_is_affected":"unknown","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000672,"input_tokens":4634,"output_tokens":418,"severity_before":"high"},"analyst_status":"done","analyst_note":"Confirm fixed LibreOffice versions and the Java/JDBC configuration needed to trigger it from the NVD entry or the LibreOffice advisory.","search":"'-104007':13A,16A '-2026':12A,15A,152C '-63277':153C 'allow':189C 'attack':8A 'base':18B 'calc':19B 'code':10A,49B,64B,132C 'configur':166C 'connect':72C,101C,184C 'could':125C 'craft':2A,40B,123C 'cve':11A,14A,151C 'databas':3A,35B,60B,74C,86C,96C,118C,178C 'describ':99C 'desktop':20B 'differ':144C 'document':4A,36B,41B,51B,97C,119C,124C,135C,179C 'driver':32B,77C,104C,110C,158C,165C 'file':61B 'fix':149C,155C 'java':9A,21B,48B,80C,131C 'jdbc':22B,31B,76C 'libreoffic':1A,23B,25B,70C,127C 'libreoffice':17A 'link':190C 'load':7A,45B,112C,128C 'locat':28B,108C,159C 'machin':69B 'make':5A,43B,126C 'malici':57B 'name':102C,180C 'open':54B,55B,140C 'packag':24B 'pivot':92C,172C 'problem':148C 'rout':145C 'run':47B,63B,130C 'sourc':89C,175C 'spreadsheet':58B,82C 'suppli':52B,136C 'tabl':93C,173C 'take':26B 'taken':115C,161C 'updat':193C 'url':183C 'use':84C,106C 'user':67B,169C,188C 'version':156C 'whose':174C 'written':78C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{"fix":{"at":"2026-11-16T17:42:12Z","by":"analyst","doc":"https://www.libreoffice.org/security/","run_id":4147}},"analyst_revisit_at":null,"fix_status":"unknown","audience":"everyone","plain_action":"Update LibreOffice to the latest version (26.2.7 or 26.8.2 or newer) from libreoffice.org, and avoid opening spreadsheets or database files from people you do not know until you have.","pkeys":["libreoffice"],"ptokens":["libreoffice"],"labels":["base","calc","desktop","high","java","jdbc","libreoffice","package"],"campaign_type":null,"search_a":"'-104007':13A,16A '-2026':12A,15A 'attack':8A 'code':10A 'craft':2A 'cve':11A,14A 'databas':3A 'document':4A 'java':9A 'libreoffic':1A 'libreoffice':17A 'load':7A 'make':5A","search_b":"'base':18B 'calc':19B 'code':49B,64B 'craft':40B 'databas':35B,60B 'desktop':20B 'document':36B,41B,51B 'driver':32B 'file':61B 'java':21B,48B 'jdbc':22B,31B 'libreoffic':23B,25B 'load':45B 'locat':28B 'machin':69B 'make':43B 'malici':57B 'open':54B,55B 'packag':24B 'run':47B,63B 'spreadsheet':58B 'suppli':52B 'take':26B 'user':67B","search_c":"'-2026':152C '-63277':153C 'allow':189C 'code':132C 'configur':166C 'connect':72C,101C,184C 'could':125C 'craft':123C 'cve':151C 'databas':74C,86C,96C,118C,178C 'describ':99C 'differ':144C 'document':97C,119C,124C,135C,179C 'driver':77C,104C,110C,158C,165C 'fix':149C,155C 'java':80C,131C 'jdbc':76C 'libreoffic':70C,127C 'link':190C 'load':112C,128C 'locat':108C,159C 'make':126C 'name':102C,180C 'open':140C 'pivot':92C,172C 'problem':148C 'rout':145C 'run':130C 'sourc':89C,175C 'spreadsheet':82C 'suppli':136C 'tabl':93C,173C 'taken':115C,161C 'updat':193C 'url':183C 'use':84C,106C 'user':169C,188C 'version':156C 'whose':174C 'written':78C","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-104007","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104007","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},{"source":"analyst","external_id":"CVE-2026-104007:4147","url":"https://www.libreoffice.org/security/","severity":null,"published_at":"2026-11-16T17:42:12+00:00","modified_at":"2026-11-16T17:42:12+00:00","first_seen_at":"2026-11-16T17:42:12+00:00","fetched_at":"2026-11-16T17:42:12+00:00","note":"Read LibreOffice's own advisory: fixed in 26.2.7 / 26.8.2. The lower bound of the affected range is not stated. No exploitation or PoC found for this CVE; the earlier sibling CVE-2026-63277 has public write-ups.","cites":["https://www.libreoffice.org/security/","https://nvd.nist.gov/vuln/detail/CVE-2026-104007"]}],"documents":[{"id":171598,"url":"https://www.libreoffice.org/security/","title":"LibreOffice security advisories: CVE-2026-100101","kind":"advisory","source":"analyst","publisher":null,"text":"CVE-2026-101352 Macros run from a document's own shortcuts, menus and toolbars. Fixed in LibreOffice 26.2.7/26.8.2. A command bound in a document's own customizations could run a macro or script even when macro security settings did not allow the document's macros. In fixed versions customizations are treated like other macro content. All users recommended to upgrade to >= 26.2.7 or >= 26.8.2. Credits: Claude and Ada Logics; truff with TrendAI ZDI.","published_at":null,"relation":"advisory","confidence":null,"note":null},{"id":171608,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104007","title":"NVD CVE-2026-104007","kind":"other","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"mentions","confidence":null,"note":null}],"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"}