LibreOffice · Public exploit code

LibreOffice: opening malicious ODS spreadsheet executes code without macros

· 1 min read

Researcher Minseong Kim (ii4gsp) from NSHC Red Alert Labs demonstrated a chain of two LibreOffice flaws, CVE-2026-104692 and CVE-2026-104007, that executes arbitrary code when a crafted ODS spreadsheet is opened, on Windows, macOS, and Linux, with no macros and no security prompts. The attack requires Java installed and enabled in LibreOffice. The source mentions no fix; treat ODS files from unknown sources with caution.

WhatsApp LinkedIn X
HighVulnerabilityPublic exploit codeFix unconfirmed

In 30 seconds

Observed

Opening the wrong spreadsheet could run code on your machine, and the good news is that it is now fixed. A proof of concept by researcher Minseong Kim, who publishes as ii4gsp, chained two LibreOffice vulnerabilities, CVE-2026-104692 and CVE-2026-104007, into arbitrary code execution on Windows, macOS, and Linux, with no macros and no security prompts. The dbu.gs advisories list the fixes in LibreOffice 26.2.7 and 26.8.2.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Observed

The detail that shapes the risk: the attack required Java to be installed and enabled inside LibreOffice. Simply opening a crafted ODS file was enough, with no extra clicks and no macro warning. The patches lock down the two flaws that made the chain work and now require user consent before LibreOffice updates links to external database documents.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

What happened

Observed

Minseong Kim of NSHC Red Alert Labs demonstrated the chain in a writeup on his ii4gsp blog and published a proof of concept alongside it. The target was not macros but the database plumbing that office suites carry quietly: when a spreadsheet references a database source, LibreOffice will go fetch it and connect.ii4gsp.github.ioii4gsp.github.io · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Observed

The chain works like this. The malicious ODS points to an external ODB database file through a form datasource reference, and LibreOffice downloads it over HTTP as the document opens. Two attributes inside the spreadsheet force a live database connection and skip query validation, so a raw SQL CALL statement reaches the embedded HSQLDB engine. The payload, a compiled Java class, travels inside the ODS itself, which is really a ZIP archive, and the downloaded ODB tells LibreOffice where to load it from. HSQLDB then executes the call, loads the class, and runs a system command with the privileges of whoever opened the file.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Alleged

On Linux the researcher showed that the second flaw alone was enough, because an attacker-controlled JDBC driver can execute code during connection setup. He suggested the same shortcut could work on Windows and macOS, though the published proofs of concept for those platforms chain both vulnerabilities. That cross-platform shortcut remains his assertion, not a published demonstration.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Why it matters

Inferred

Most people's reflex for dangerous documents is the macro warning. This chain sidesteps that reflex completely: no macros, no prompt, no further interaction, and the same file works across the three major desktop systems. The one stated prerequisite is a Java-enabled LibreOffice installation, which is exactly the setup of anyone using Base, LibreOffice's database component, or JDBC connections.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Inferred

The delivery scenario is uncomfortably simple: a spreadsheet arrives by email or download, the victim double-clicks, and that is the entire attack. Because the payload rides inside the document itself and the database file is fetched from the network, habits built around macro hygiene give defenders very little to grip onto here.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listii4gsp.github.ioii4gsp.github.io · rssOpen original sourceSee in source list

What to do

Observed

Update. LibreOffice 26.2.7 and 26.8.2 contain the fixes, and the tracker maps them to CVE-2026-104007 and CVE-2026-104692. Beyond the two flaw fixes, the patches also enforce HSQLDB's Java method restrictions and require consent before links to external database documents are updated.dbu.gsdbu.gs · rssOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Inferred

If you cannot update right away, the documented precondition gives you a lever: the chain needed Java installed and enabled in LibreOffice, so disabling Java there, under Tools, Options, LibreOffice, Java, removes the stated requirement when you do not use Base or JDBC. And treat ODS files from unknown sources the way you would treat an executable until you are patched.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Confirmed and still uncertain

Observed

What is established: both flaws are catalogued as CVE-2026-104692 and CVE-2026-104007, the exploit chain is documented step by step, a proof of concept exists, the attack requires Java enabled in LibreOffice, and the fixed versions are 26.2.7 and 26.8.2.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Inferred

What is not: none of the captured reports mention attacks in the wild, victims, or a specific campaign, so real-world impact is simply unknown. It also remains unverified whether the single-flaw Linux shortcut works on Windows and macOS. That part is the researcher's suggestion only.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

What people are saying

Observed

The loudest signal came from the ptdbugs account on X, tied to the dbu.gs tracker, which condensed the research into a step-by-step thread headlined as RCE without macros or security prompts via JDBC and HSQLDB, and pointed readers to the article and the two advisory entries.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Observed

The researcher's own framing, as relayed in that thread, is blunt: simply opening the document is enough, provided Java is installed and enabled in LibreOffice. He released the proof of concept together with the writeup rather than holding it back.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listii4gsp.github.ioii4gsp.github.io · rssOpen original sourceSee in source list

Evolution

Observed

The story built in two steps. The researcher's writeup landed first on his ii4gsp blog in mid-November with the demonstration and proof of concept. In late November the dbu.gs tracker followed with a news article, the advisory pages PT-2026-148326 and PT-2026-148327, and a detailed public thread laying out the mechanics and the patch status.ii4gsp.github.ioii4gsp.github.io · rssOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Observed

Early one-line summaries of the bug, including an earlier version of this story's own context, said the source mentioned no fix. That framing no longer holds: the advisory record now lists LibreOffice 26.2.7 and 26.8.2 as fixed versions and describes exactly what the patches change.dbu.gsdbu.gs · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Reach

Observed

2 independent groups, 1 updates, and 0 engagements.

Technical detail

Observed

CVE-2026-104692 is an allowlist bypass in HSQLDB, the Java database engine LibreOffice can embed. When HSQLDB was reached through the generic JDBC driver, the list of allowed Java method names was left uninitialized, effectively null, instead of an empty set. The check that should have blocked unknown methods then approved every name, so an attacker could invoke arbitrary Java methods through a SQL CALL statement.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Observed

CVE-2026-104007 breaks the guard on JDBC classpaths. Opening an ODB database file directly strips the JavaDriverClassPath property precisely to stop attacker-controlled Java classes from loading, but that guard was bypassed when the ODB was pulled in indirectly through a form datasource inside the ODS. The attacker-chosen classpath then flowed into the connection setup, where classes load through URLClassLoader.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Observed

The glue between the flaws is a set of XML attributes in the spreadsheet. The form datasource reference triggers the HTTP download of the external ODB, an apply-design-mode value of false opens a database connection at document load, and an escape-processing value of false skips SingleSelectQueryComposer validation so the raw SQL CALL reaches HSQLDB. The ODB points JavaDriverClassPath back at the ODS itself, located through $SYSUSERHOME and the usual Downloads, Desktop, and Documents folders.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Alleged

On Linux, CVE-2026-104007 alone sufficed in the demonstration: a crafted JDBC driver runs its connect method during connection setup, before any HSQLDB query happens. The researcher asserts this path also works on Windows and macOS, but the published proofs of concept for those platforms chain both vulnerabilities.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Sources and evidence

Observed

This story rests on five items: the researcher's original writeup at ii4gsp.github.io, a dbu.gs news article, two dbu.gs advisory pages, and a detailed thread by the ptdbugs account. Only the thread's full text was captured. The writeup and the article arrived as links without bodies, so the mechanics described here are sourced through the thread and the advisory entries.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listii4gsp.github.ioii4gsp.github.io · rssOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Inferred

Corroboration is reasonable for a single-narrator event: the two advisories independently catalogue the CVEs, the article matches the thread, and the vendor patches line up with the described flaws. For anything consequential, verify against the researcher's original writeup and the LibreOffice 26.2.7 and 26.8.2 release notes, since no statement from the LibreOffice project itself appears in this batch.dbu.gsdbu.gs · rssOpen original sourceSee in source listdbu.gsdbu.gs · rssOpen original sourceSee in source list

Sources

  1. ptdbugsx.com · ptdbugs · x
  2. dbu.gsdbu.gs · rss
  3. ii4gsp.github.ioii4gsp.github.io · rss
  4. dbu.gsdbu.gs · rss
  5. dbu.gsdbu.gs · rss

Incidents like this, every morning

The ones that need action first, in a 3-minute read.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Get the next one tomorrow morning

One email a day with what changed, what to fix first and how.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Share it with your team

Whoever handles security with you should get it too.

LinkedIn X

Your colleague gets a confirmation request. Nothing is sent unless they confirm.

See all news

Read also

Before you go: get this every day

The HIFY Radar daily edition lands every morning with the incidents that need action. Free.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click