Spreadsheets that run code when opened in LibreOffice and OpenOffice

A specially designed spreadsheet can run code as soon as it is opened in LibreOffice and OpenOffice, without the usual macro warning, provided that Java support is enabled.

Many small businesses use LibreOffice or Apache OpenOffice as a free alternative to Microsoft Office. Researchers have described a method whereby a spreadsheet file executes code the moment it is opened, without the trust prompt that you usually see with macros.

The mechanism chains together legitimate functions: the sheet contains a “database area” that retrieves its data from an external source; this can point to a Java driver (JDBC) and a file located on a remote server, which launches and executes the attacker’s code. Each component is a normal function of the suite, but together they bypass the warning. The attack works only if Java support is enabled.

So far, no actual attacks have been confirmed—only a proof-of-concept. LibreOffice has released a fix; Apache OpenOffice does not yet have one, and its versions remain vulnerable.

For a small business, security costs nothing and comes down to a few simple habits.

What you need to do:

  • For LibreOffice: Update to version 26.2.5 or 26.8.0 (CVE-2026-63277).
  • For OpenOffice, which does not yet have a fix (CVE-2026-59265): disable Java support in the suite's settings.
  • Do not open spreadsheets received from untrusted sources, especially unexpected attachments.

Sources: The Hacker News | https://thehackernews.com/2026/10/libreoffice-and-openoffice-flaws-let.html

This article was generated with AI assistance.

Request a quote

← All news