Vulnerabilities · 2018 · Libreoffice
CVE-2018-16858
Libreoffice vulnerability
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.
Affected products
Libreoffice. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Libreoffice runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.libreoffice.org/about-us/security/advisories/cve-2018-16858/ · Vendor Advisory
- packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html · Exploit
- www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec · Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858 · Third Party Advisory
- www.exploit-db.com/exploits/46727/ · Exploit
- lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html
- access.redhat.com/errata/RHSA-2019:2130
- seclists.org/bugtraq/2019/Aug/28
- nvd.nist.gov/vuln/detail/CVE-2018-16858
- cve.org/CVERecord?id=CVE-2018-16858
More vulnerabilities in Libreoffice products
CVE-2025-2866CVE-2025-1080CVE-2025-0514CVE-2024-12426CVE-2024-12425CVE-2024-7788CVE-2024-6472CVE-2024-5261All 68
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.