LibreOffice versions prior to 6.0.7 and 6.1.3 are vulnerable to a directory traversal attack that allows execution of arbitrary macros. An attacker can craft a malicious document that, when opened, causes LibreOffice to execute a Python method from a script located at an arbitrary file system location, relative to the LibreOffice installation directory. This is due to improper sanitization of file paths when loading macros bundled with documents.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module (libreoffice_macro_exec.rb) that exploits CVE-2018-16858, a macro code execution and directory traversal vulnerability in LibreOffice. The exploit works by generating a malicious ODT file that, when opened and interacted with (mouse over event), triggers execution of arbitrary code via a vulnerable Python script (pydoc.py) included with LibreOffice. The module supports both Windows and Linux targets, delivering customizable Meterpreter reverse shell payloads. The main file is written in Ruby and leverages Metasploit's file format, Powershell, and command stager mixins. The exploit is weaponized, allowing attackers to easily generate malicious documents for remote code execution on vulnerable LibreOffice installations.
This repository provides a Python-based generator for malicious FODT (Flat OpenDocument Text) files that exploit CVE-2018-16858, a remote code execution vulnerability in LibreOffice. The structure consists of a Python script (main.py), a template FODT file (FODT-Template), and a README. The main.py script takes user-supplied parameters (target IP/domain, file path, command to execute, and display text) and generates a customized FODT file. The FODT-Template contains an embedded link and an event listener that, when triggered (e.g., by mouseover), executes arbitrary commands on the victim's system via a Python script path (defaulting to pydoc.py). The exploit is operational, allowing attackers to craft documents that, when opened in vulnerable versions of LibreOffice, can execute arbitrary commands. The main attack vector is user-assisted: the victim must open the malicious document and interact with the embedded link. The endpoints of interest are the customizable HTTP link and the file path to the Python script used for code execution.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.