CVE-2018-16858: libreoffice
Vulnerability summary
CVE-2018-16858 is a critical (CVSS 9.8) vulnerability in libreoffice. EPSS estimates a 67.32% chance of exploitation in the next 30 days, higher than 99.3% of scored vulnerabilities. 3 public exploits are recorded.
Weaponized exploit (exploit-database, 18-04-2019)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 25-03-2019PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA7.8HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated7.8HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
67.32%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 67.32% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
3 foundExploit Reference (packetstormsecurity.com)
Maturity: unknown
LibreOffice < 6.0.7 / 6.1.3 - Directory Traversal / Macro Code Execution (Metasploit)
Maturity: weaponized
LibreOffice Macro Code Execution
exploit/multi/fileformat/libreoffice_macro_exec
Maturity: poc
Weaknesses
CWE · root cause- CWE-356Missing User Interaction for Potentially Unsafe ActionThe product encounters a situation in which some of its behavior is security-critical and should be authorized by a human before progressing, but it does not properly consult with the human user or its proxy (such as UI approval dialogues or pre-set policies) to determine whether it is allowed to perform the potentially dangerous behavior.
- CWE-22Improper Limitation of a Pathname to a Restricted DirectoryThe product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat162 products
- autocorr-af< 1:5.3.6.1-21.el7
- autocorr-bg< 1:5.3.6.1-21.el7
- autocorr-ca< 1:5.3.6.1-21.el7
- autocorr-cs< 1:5.3.6.1-21.el7
- autocorr-da< 1:5.3.6.1-21.el7
Mageia23 products
- cppunit< 1.14.0-1.mga6
- libabw< 0.1.2-1.mga6
- libcdr< 0.1.5-1.mga6
- libcmis< 0.5.2-1.mga6
- libe-book< 0.1.3-1.mga6
Opensuse12 products
- libixion&distro=openSUSE Leap 15.0< 0.14.1-lp151.4.3.1
- libixion&distro=openSUSE Leap 15.1< 0.14.1-lp151.4.3.1
- liborcus&distro=openSUSE Leap 15.0< 0.14.1-lp151.3.3.1
- liborcus&distro=openSUSE Leap 15.1< 0.14.1-lp151.3.3.1
- libreoffice&distro=openSUSE Leap 15.0< 6.2.5.2-lp151.3.3.4
Debian1 product
- libreoffice< 1:6.1.3-1 | < 1:4.3.3-2+deb8u12 | < 1:5.2.7-1+deb9u5
Libreoffice1 product
- libreoffice< 6.0.7 | ≥ 6.1.0, < 6.1.3
Ubuntu1 product
- libreoffice< 1:4.2.8-0ubuntu5.5 | < 1:5.1.6~rc2-0ubuntu1~xenial6
6 vendors · 200 products · Showing 200 of 261
References
48 links- www.libreoffice.org/about-us/security/advisories/cve-2018-16858/X Refsource MISCVendor AdvisoryAdvisoryARTICLEREPORT
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858X Refsource CONFIRMIssue TrackingThird Party Advisory
- packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.htmlX Refsource MISCExploitThird Party AdvisoryVDB Entry
- www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_execX Refsource MISCThird Party Advisory
Show all 48 references
- bugzilla.suse.com/882383REPORT
- lists.opensuse.org/archives/…Advisory