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.
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
0.00 pp
From 67.32% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundExploit Reference (packetstormsecurity.com)
Maturity: unknown
LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)
Maturity: weaponized
LibreOffice Macro Code Execution
exploit/multi/fileformat/libreoffice_macro_exec
Maturity: poc
Weaknesses
CWE · root cause- CWE-356Product UI does not Warn User of Unsafe ActionsThe product's user interface does not warn the user before undertaking an unsafe action on behalf of that user. This makes it easier for attackers to trick users into inflicting damage to their system.
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The 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
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:5.2.7-1+deb9u5 | < 1:4.3.3-2+deb8u12
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. Use Open JSON for the complete list.
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