CVE-2026-104007 — The Document Foundation LibreOffice
One of 24 The Document Foundation LibreOffice vulnerabilities published together by NVD: our article covers all of them.
JavaDatabasesVulnerabilitiesResearch article
LibreOffice Vulnerability Allows Execution of Java Code via Malicious Pivot Table
| CVE | CVE-2026-104007 |
|---|---|
| Vendor and product | The Document Foundation LibreOffice |
| Published | November 24, 2026 10:40 UTC |
| Research cut-off | November 24, 2026 09:50 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-17); CISA KEV catalog; FIRST EPSS (2026-11-23) |
Executive summary
CVE-2026-104007 impacts LibreOffice, enabling the execution of Java code through a malicious pivot table. The CVSS 4.0 score is 8.5 HIGH, assigned by security@documentfoundation.org [1]. The vulnerability affects LibreOffice versions ≥ 26.2, < 26.2.7 and ≥ 26.8, < 26.8.2 [1]. The reviewed sources do not confirm exploitation [2]. The recommended action is to upgrade to a patched version [1].
Key points
- CVE-2026-104007 allows execution of Java code through a malicious pivot table [1].
- The CVSS 4.0 score is 8.5 HIGH, assigned by security@documentfoundation.org [1].
- The vulnerability affects LibreOffice versions ≥ 26.2, < 26.2.7 and ≥ 26.8, < 26.8.2 [1].
- The reviewed sources do not confirm exploitation [2].
- The recommended action is to upgrade to a patched version [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 score | Published Date | Last Modified Date | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-104007 | The Document Foundation | LibreOffice | CWE-829 | 8.5 HIGH | 2026-11-16 | 2026-11-17 | Deferred |
Vulnerability description
LibreOffice can establish connections to databases using JDBC drivers implemented in Java. A spreadsheet can reference a database as the source for a pivot table, and the document defining the connection specifies the driver to use. The location from which the driver was loaded was sourced from the database document itself, which means a maliciously crafted document could trick LibreOffice into loading and executing Java code provided by the document upon opening [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates that the vulnerability requires local access, does not demand user interaction, and has significant impacts on confidentiality, integrity, and availability. The CVSS vector letters indicate local attack vector, no privileges required and user interaction required [1].
Impact analysis
This vulnerability can lead to high risks to confidentiality, integrity, and availability. The CVSS 4.0 score reflects high confidentiality, integrity and availability impact [1].
Affected products and versions
| Affected Product | Affected Version Range | Fixed Version |
|---|---|---|
| LibreOffice | ≥ 26.2, < 26.2.7 | < 26.2.7 |
| LibreOffice | ≥ 26.8, < 26.8.2 | < 26.8.2 |
Exploitation and threat intelligence status
CVE-2026-104007 is not listed in the CISA KEV catalog as of 2026-11-24 [2]. The EPSS score for this CVE is 0.0021 (0.21%) as of 2026-11-23 [3]. This score is a statistical estimate and not definitive evidence of exploitation.
Detection and exposure assessment
Users can assess their exposure by checking if they are using an affected version of LibreOffice. The vulnerable versions are ≥ 26.2, < 26.2.7 and ≥ 26.8, < 26.8.2 [1].
Remediation
The vulnerability is resolved in LibreOffice versions < 26.2.7 and < 26.8.2 [1]. Users should update to one of these fixed versions [1].
Remediation checklist
- Upgrade LibreOffice to version < 26.2.7 or < 26.8.2 [1].
- Ensure all users are running a secure version of LibreOffice.
- Monitoring for signs of exploitation is general defensive guidance; the sources do not describe specific indicators.
Evidence gaps
- The sources do not describe how the vulnerability is exploited in technical detail.
- The sources do not provide attack scenarios or lifecycle information.
- The sources do not include indicators of compromise.
- The sources do not mention any workarounds or alternative controls.
- The sources do not describe the internal workings of the affected component.
References
- CVE-2026-104007 record. NIST National Vulnerability Database (NVD), 2026-11-17. https://nvd.nist.gov/vuln/detail/CVE-2026-104007. Accessed 2026-11-24.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-24. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-24.
- EPSS score for CVE-2026-104007. FIRST, 2026-11-23. https://api.first.org/data/v1/epss?cve=CVE-2026-104007. Accessed 2026-11-24.
Summary
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.
Severity breakdown
High · 8.5
An attacker without an account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| The Document Foundation LibreOffice | ≥ 26.2, < < 26.2.7 | < 26.2.7 |
| ≥ 26.8, < < 26.8.2 | < 26.8.2 |
References by type
Other references
Affected
- The Document Foundation LibreOffice
Frequently asked questions
What is CVE-2026-104007?
CVE-2026-104007 impacts LibreOffice, enabling the execution of Java code through a malicious pivot table. The CVSS 4.0 score is 8.5 HIGH, assigned by security@documentfoundation.org. The vulnerability affects LibreOffice versions ≥ 26.2, < 26.2.7 and ≥ 26.8, < 26.8.2. The reviewed sources do not confirm exploitation. The recommended action is to upgrade to a patched version. Weakness type: Inclusion of Functionality from Untrusted Control Sphere (CWE-829).
How severe is CVE-2026-104007?
CVE-2026-104007 has a CVSS 4.0 base score of 8.5 (high), from the CNA (documentfoundation.org). An attacker without an account can exploit this with local access if a user views or visits something.
Is CVE-2026-104007 being exploited?
Not as far as is known: CVE-2026-104007 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-104007?
The Document Foundation LibreOffice ≥ 26.2, < < 26.2.7 (fixed in < 26.2.7); The Document Foundation LibreOffice ≥ 26.8, < < 26.8.2 (fixed in < 26.8.2).
How do I fix CVE-2026-104007?
Upgrade LibreOffice to version < 26.2.7 or < 26.8.2. Ensure all users are running a secure version of LibreOffice. Monitoring for signs of exploitation is general defensive guidance; the sources do not describe specific indicators.