---
id: "CVE-2026-104007"
page: "https://infrastack.ai/live/CVE-2026-104007"
kind: "vulnerability"
aliases: ["CVE-2026-104007"]
title: "LibreOffice: crafted database document makes it load attacker Java code"
severity: "high"
cvss: 8.5
epss: null
exploited: false
status: "open"
category: "package"
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"]
published_at: "2026-11-16T17:17:27+00:00"
first_seen_at: "2026-11-16T17:37:55+00:00"
updated_at: "2026-11-16T17:42:12+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104007", "first_seen_at": "2026-11-16T17:37:55+00:00"}, {"source": "analyst", "url": "https://www.libreoffice.org/security/", "first_seen_at": "2026-11-16T17:42:12+00:00", "cites": ["https://www.libreoffice.org/security/", "https://nvd.nist.gov/vuln/detail/CVE-2026-104007"]}]
exploit_sources: []
---

# LibreOffice: crafted database document makes it load attacker Java code

Link for people: https://infrastack.ai/live/CVE-2026-104007 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:LibreOffice affected < 26.2.7 (26.2 line), < 26.8.2 (26.8 line); first affected version not stated fixed 26.2.7, 26.8.2

## 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.

## Timeline

- 2026-11-16T17:37:55+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-104007
- 2026-11-16T17:42:12+00:00 analyst https://www.libreoffice.org/security/ — 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.

## Documents

- [advisory] LibreOffice security advisories: CVE-2026-100101 https://www.libreoffice.org/security/
- [mentions] NVD CVE-2026-104007 https://nvd.nist.gov/vuln/detail/CVE-2026-104007

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
