CVE-2018-16858: Path Traversal

Published Nov 14, 2018
·
Updated

A flaw was found in libreoffice. If a document does not contain macros/scripts, but references a pre-installed macro/script execution of those macros/scripts, execution is allowed without warning bypassing normal behavior.

Other sources

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.

Launchpad

Affected Software

5 affected componentsFixes available
redhat/libreoffice<6.0.7
6.0.7
redhat/libreoffice<6.1.3
6.1.3
LibreOffice Libreoffice<6.0.7
LibreOffice Libreoffice>=6.1.0<6.1.3
debian/libreoffice
1:7.0.4-4+deb11u101:7.0.4-4+deb11u134:7.4.7-1+deb12u104:7.4.7-1+deb12u84:25.2.3-2+deb13u34:26.2.0-14:26.2.1-1

Event History

Mar 25, 2019
CVE Published
via MITRE·05:43 PM
Data Sourced
via MITRE·05:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:29 PM
DescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:54 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·03:47 PM
RemedyDescriptionSeverityAffected Software
Feb 26, 2026
Data Sourced
via Debian·03:52 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-16858?

CVE-2018-16858 is a vulnerability in LibreOffice that allows for a directory traversal attack, potentially leading to the execution of arbitrary macros.

2

How can this vulnerability be exploited?

This vulnerability can be exploited by crafting a document that, when opened by LibreOffice, executes a Python method from a script in a malicious document.

3

What is the severity of CVE-2018-16858?

The severity of CVE-2018-16858 is rated as critical with a CVSS score of 9.8.

4

Which versions of LibreOffice are affected by CVE-2018-16858?

LibreOffice versions before 6.0.7 and 6.1.3 are affected by CVE-2018-16858.

5

How can I mitigate the vulnerability in LibreOffice?

To mitigate the vulnerability, it is recommended to update to LibreOffice versions 6.0.7 or 6.1.3, depending on the version in use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203