LibreOffice RCE chain (CVE-2026-104007, CVE-2026-104692): public PoC for crafted spreadsheets; fixed in 26.2.7 and 26.8.2
Researcher ii4gsp published a full exploit chain for two LibreOffice flaws, CVE-2026-104007 and CVE-2026-104692. Opening a crafted spreadsheet gives code execution on macOS, Windows and Linux. The attack needs no macros and no prompts. It only works when a Java runtime is installed and enabled in LibreOffice. The Document Foundation fixed both bugs in 26.2.7 and 26.8.2. The article reports no confirmed exploitation, and says CISA's assessment in the CVE records lists exploitation as "none" and that neither flaw is in the KEV catalog. This summary comes from the article alone; no vendor advisory, fix PR or release notes were checked.
Entenda a falha
A vulnerabilidade
Two flaws in LibreOffice chain into code execution when a user opens a crafted spreadsheet. CVE-2026-104007 (highest severity cited is CVSS v4 8.5, High) lets a document control where the JDBC driver is loaded from. CVE-2026-104692 lets SQL in a document call any Java method through HSQLDB via the generic JDBC driver. The attacker needs the victim to open the file, with no macros or prompts, and a Java runtime must be installed and enabled in LibreOffice. Affected: 26.2 before 26.2.7 and 26.8 before 26.8.2; fixed in 26.2.7 and 26.8.2.
Como funciona
A spreadsheet is opened and references an external database file. LibreOffice downloads that database file over HTTP without asking the user. The database document carries the location the JDBC driver should be loaded from, and LibreOffice loads and runs the Java code found there. Separately, when HSQLDB is used through the generic JDBC driver, SQL in the document can call arbitrary Java methods. Because database access is treated as a non-macro operation, macro security never triggers, and the format is detected by content, so the file can carry a .xlsx name.
Por que é vulnerável
For CVE-2026-104007, the driver location was trusted from the document itself. LibreOffice already stripped that setting when a database file was opened directly, but the filter did not run on the path where a spreadsheet references an external database file. For CVE-2026-104692, the whitelist of callable Java methods did not apply under the generic JDBC driver. The fix always strips the driver location from documents, and the HSQLDB whitelist now starts empty instead of disabled.
Como foi descoberta
The CVE records credit several separate researchers, including teams from Codean Labs, NSHC Red Alert Labs and Hacktron AI, so several teams reported the same issues to LibreOffice independently. Collabora's Caolan McNamara also appears in the credits. The articles do not say how the flaws were found. Researcher ii4gsp then published a write-up of the full chain. No exploitation has been confirmed, and CISA's assessment in the CVE records lists it as none.
PoC pública
Researcher ii4gsp published a full exploit chain with a proof-of-concept walkthrough, source code excerpts and a description of how the PoC files fit together. It gives remote code execution on macOS, Windows and Linux through a crafted spreadsheet when Java is enabled; on Linux the researcher says CVE-2026-104007 alone is enough, while macOS and Windows need both bugs. This is a working chain, so attackers no longer have to rediscover it. Neither flaw is in the KEV catalog, but patching is urgent. If you cannot patch now, disable the Java runtime option.
Publicada em: securityonline.info/libreoffice-remote-code-execution-poc/ ↗
Explicação gerada por IA a partir da matéria e dos artigos, em 17/11/2026 23:16.
Detalhes técnicos
- CVE-2026-104007: the JDBC driver location was taken from the database document itself. LibreOffice already stripped that setting when a database file was opened directly. The filter did not run when a spreadsheet referenced an external database file, which LibreOffice downloads over HTTP without asking the user. The researcher says this flaw alone is enough for code execution on Linux.
- CVE-2026-104692: the HSQLDB whitelist of callable Java methods did not apply when HSQLDB was used through the generic JDBC driver. SQL in a crafted document could therefore call any Java method. On macOS and Windows the published chain combines both bugs.
- LibreOffice treats database access as a non-macro operation, so macro security never triggers. Format detection is content-based, so the file can carry a .xlsx name.
- The article gives a highest severity of 8.5 (CVSS v4, High). It does not give the vector.
- Credited researchers include teams from Codean Labs, NSHC Red Alert Labs and Hacktron AI, plus Caolan McNamara of Collabora.
Remediação
- Update to LibreOffice 26.2.7 or 26.8.2. The fix always strips the driver location from documents, and the HSQLDB whitelist now starts empty instead of disabled.
- Affected: 26.2 before 26.2.7 and 26.8 before 26.8.2.
- As a workaround, turn off "Use a Java runtime environment" under Tools, Options, LibreOffice, Advanced.
- Treat unexpected spreadsheets as suspicious, including .xlsx files.
- Block outbound connections from LibreOffice to unknown hosts where possible.
Linha do tempo
-
LibreOffice RCE chain (CVE-2026-104007, CVE-2026-104692): public PoC for crafted spreadsheets; fixed in 26.2.7 and 26.8.2
ler a análise desta fonte ocultar
Researcher ii4gsp published a full exploit chain for two LibreOffice flaws, CVE-2026-104007 and CVE-2026-104692. Opening a crafted spreadsheet gives code execution on macOS, Windows and Linux. The attack needs no macros and no prompts. It only works when a Java runtime is installed and enabled in LibreOffice. The Document Foundation fixed both bugs in 26.2.7 and 26.8.2. The article reports no confirmed exploitation, and says CISA's assessment in the CVE records lists exploitation as "none" and that neither flaw is in the KEV catalog. This summary comes from the article alone; no vendor advisory, fix PR or release notes were checked.
Technical Details
- CVE-2026-104007: the JDBC driver location was taken from the database document itself. LibreOffice already stripped that setting when a database file was opened directly. The filter did not run when a spreadsheet referenced an external database file, which LibreOffice downloads over HTTP without asking the user. The researcher says this flaw alone is enough for code execution on Linux.
- CVE-2026-104692: the HSQLDB whitelist of callable Java methods did not apply when HSQLDB was used through the generic JDBC driver. SQL in a crafted document could therefore call any Java method. On macOS and Windows the published chain combines both bugs.
- LibreOffice treats database access as a non-macro operation, so macro security never triggers. Format detection is content-based, so the file can carry a .xlsx name.
- The article gives a highest severity of 8.5 (CVSS v4, High). It does not give the vector.
- Credited researchers include teams from Codean Labs, NSHC Red Alert Labs and Hacktron AI, plus Caolan McNamara of Collabora.
Remediation
- Update to LibreOffice 26.2.7 or 26.8.2. The fix always strips the driver location from documents, and the HSQLDB whitelist now starts empty instead of disabled.
- Affected: 26.2 before 26.2.7 and 26.8 before 26.8.2.
- As a workaround, turn off "Use a Java runtime environment" under Tools, Options, LibreOffice, Advanced.
- Treat unexpected spreadsheets as suspicious, including .xlsx files.
- Block outbound connections from LibreOffice to unknown hosts where possible.