AI description
CVE-2026-104007 is a security vulnerability in LibreOffice affecting versions prior to 26.2.7 and 26.8.2 when a Java runtime is enabled. The flaw resides in how LibreOffice handles Java Database Connectivity (JDBC) drivers when connecting to databases. Normally, LibreOffice is designed to strip the `JavaDriverClassPath` property from database documents (.odb files) to prevent unauthorized classpath injection. However, this security filter is bypassed when a database document is referenced externally, such as through a form's external data source or a pivot table sourced from a URL. As a result, the application loads the driver location directly from the untrusted database document itself. By exploiting this bypass, an attacker can craft a malicious spreadsheet (such as an .ods file) that automatically fetches a database document from an external server. When a user opens the spreadsheet, LibreOffice loads the external document and executes the attacker-supplied Java code without triggering macro warnings or security prompts. On Linux systems, this vulnerability alone is sufficient to achieve arbitrary code execution, while on Windows and macOS, it can be chained with CVE-2026-104692 to bypass the database engine's method whitelist. The Document Foundation has resolved the issue by ensuring driver locations are only loaded from the user's local configuration and requiring user confirmation before connecting to external database links.
- 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.
- Source
- security@documentfoundation.org
- NVD status
- Deferred
CVSS 4.0
- Type
- Secondary
- Base score
- 8.5
- Impact score
- -
- Exploitability score
- -
- Vector string
- 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
- Severity
- HIGH
- security@documentfoundation.org
- CWE-829
Hype score is a measure of social media activity compared against trending CVEs from the past 12 months. Max score 100.
- Hype score
25