CVE-2018-16858libreoffice Path Traversal
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.
Published Mar 25, 2019 · Updated Oct 24, 2026 · Also known as DEBIAN-CVE-2018-16858, DLA-1669-1, DSA-4381-1, MGASA-2019-0102, SUSE-SU-2019:1448-1, SUSE-SU-2019:1894-1, SUSE-SU-2019:2003-1, UBUNTU-CVE-2018-16858
Key Facts
Patch immediately- CVE-2018-16858 is a high-severity vulnerability (CVSS 7.8 v3.1) affecting libreoffice-fresh (arch), libreoffice (debian), cppunit (mageia) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 67% probability of exploitation in the next 30 days.
- Fixed versions are available, including autocorr-af 1:5.3.6.1-21.0.1.el7, autocorr-bg 1:5.3.6.1-21.0.1.el7, autocorr-ca 1:5.3.6.1-21.0.1.el7.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
7.8
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
67%
Higher than 99.4% of all scored CVEs
Exploit maturity
Weaponized
ATLAS score
67/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Weaponized
Public exploit code
5
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858
- advisoryhttps://insert-script.blogspot.com/2019/02/libreoffice-cve-2018-16858-remote-code.html
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2018-16858
- advisoryhttps://ubuntu.com/security/CVE-2018-16858
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2018-16858
- advisoryhttps://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/
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.
Affected Products
2,042 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| libreoffice-fresharch | See advisory | 6.1.3-1 |
| libreofficedebian | See advisory | 1:6.1.3-1 |
| cppunitmageia | See advisory | 1.14.0-1.mga6 |
| libabwmageia | See advisory | 0.1.2-1.mga6 |
| libcdrmageia | See advisory | 0.1.5-1.mga6 |
Patched Releases
autocorr-af
1:5.3.6.1-21.0.1.el7
autocorr-bg
1:5.3.6.1-21.0.1.el7
autocorr-ca
1:5.3.6.1-21.0.1.el7
autocorr-cs
1:5.3.6.1-21.0.1.el7
autocorr-da
1:5.3.6.1-21.0.1.el7
autocorr-de
1:5.3.6.1-21.0.1.el7
autocorr-en
1:5.3.6.1-21.0.1.el7
autocorr-es
1:5.3.6.1-21.0.1.el7
autocorr-fa
1:5.3.6.1-21.0.1.el7
autocorr-fi
1:5.3.6.1-21.0.1.el7
autocorr-fr
1:5.3.6.1-21.0.1.el7
autocorr-ga
1:5.3.6.1-21.0.1.el7
autocorr-hr
1:5.3.6.1-21.0.1.el7
autocorr-hu
1:5.3.6.1-21.0.1.el7
autocorr-is
1:5.3.6.1-21.0.1.el7
autocorr-it
1:5.3.6.1-21.0.1.el7
autocorr-ja
1:5.3.6.1-21.0.1.el7
autocorr-ko
1:5.3.6.1-21.0.1.el7
autocorr-lb
1:5.3.6.1-21.0.1.el7
autocorr-lt
1:5.3.6.1-21.0.1.el7
autocorr-mn
1:5.3.6.1-21.0.1.el7
autocorr-nl
1:5.3.6.1-21.0.1.el7
autocorr-pl
1:5.3.6.1-21.0.1.el7
autocorr-pt
1:5.3.6.1-21.0.1.el7
autocorr-ro
1:5.3.6.1-21.0.1.el7
Timeline
Publicly disclosed
Mar 25, 2019
Last updated
Oct 24, 2026
Weakness Type
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-356 Missing User Interaction for Potentially Unsafe Action
References
- advisorybugzilla.redhat.com · show_bug.cgi
- advisoryinsert-script.blogspot.com · CVE-2018-16858
- advisorysecurity-tracker.debian.org · CVE-2018-16858
- advisoryubuntu.com · CVE-2018-16858
- advisorycve.org · CVERecord
FAQ
Common Questions.
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.
Affected: libreoffice-fresh (arch); libreoffice (debian); cppunit (mageia), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including autocorr-af 1:5.3.6.1-21.0.1.el7, autocorr-bg 1:5.3.6.1-21.0.1.el7, autocorr-ca 1:5.3.6.1-21.0.1.el7.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2018-16858 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo