CVE-2018-16858: Libreoffice
Critical severity, CVSS 9.8. EPSS: 67% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Libreoffice, before 6.0.7: fixed in 6.0.7
- Libreoffice, from 6.1.0, before 6.1.3: fixed in 6.1.3
Affected products
- Libreoffice Libreoffice: before 6.0.7 (fixed in 6.0.7); from 6.1.0, before 6.1.3 (fixed in 6.1.3)
Published 2019-03-25. Last modified 2026-06-17.