CVE-2018-16858

HIGH

LibreOffice Macro Python Code Execution

Title source: metasploit

Description

It was found that libreoffice before versions 6.0.7 and 6.1.3 was vulnerable to a directory traversal attack which could be used to execute arbitrary macros bundled with a document. An attacker could craft a document, which when opened by LibreOffice, would execute a Python method from a script in any arbitrary file system location, specified relative to the LibreOffice install location.

Exploits (6)

exploitdb WORKING POC VERIFIED
by Metasploit · rubylocalmultiple
https://www.exploit-db.com/exploits/46727
nomisec WORKING POC 3 stars
by 4nimanegra · poc
https://github.com/4nimanegra/libreofficeExploit1
nomisec WORKING POC 1 stars
by Henryisnotavailable · poc
https://github.com/Henryisnotavailable/CVE-2018-16858-Python
nomisec SCANNER 1 stars
by bantu2301 · poc
https://github.com/bantu2301/CVE-2018-16858
nomisec SCANNER 1 stars
by phongld97 · poc
https://github.com/phongld97/detect-cve-2018-16858
metasploit WORKING POC NORMAL
by Alex Inführ, Shelby Pace · rubypocwin
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb

Scores

CVSS v3 7.8
EPSS 0.9234
EPSS Percentile 99.7%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-22 CWE-356
Status published
Products (1)
libreoffice/libreoffice < 6.0.7
Published Mar 25, 2019
Tracked Since Feb 18, 2026