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.
CVE-2018-16858
Score elevated to 9.8 because EPSS predicts 92% probability of exploitation within the next 30 days (top 0.3% of all CVEs). NVD baseline CVSS 7.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 67%
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 9.8(high)
- EPSS
- 99.2%
- KEV
- Not listed
Published
March 25, 2019
Last Modified
November 21, 2024
References (16)
- secalert@redhathttp://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html
- secalert@redhathttp://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html
- secalert@redhathttp://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec
- secalert@redhathttps://access.redhat.com/errata/RHSA-2019:2130
- secalert@redhathttps://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858
- secalert@redhathttps://seclists.org/bugtraq/2019/Aug/28
- secalert@redhathttps://www.exploit-db.com/exploits/46727/
- secalert@redhathttps://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/
- af854a3a-2127-422b-91ae-364da2661108http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html
- af854a3a-2127-422b-91ae-364da2661108http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/errata/RHSA-2019:2130
- af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858
- af854a3a-2127-422b-91ae-364da2661108https://seclists.org/bugtraq/2019/Aug/28
- af854a3a-2127-422b-91ae-364da2661108https://www.exploit-db.com/exploits/46727/
Patch Availability(2)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | ure (5.1.6~rc2-0ubuntu1~xenial6) @ xenial | 2026-05-27 | ubuntu |
| redhat | libreoffice-1:5.3.6.1-21.el7 | 2019-08-08 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(2)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 8× in last 7d / 26× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 20:02 UTCOSV refresh
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 06:10 UTCEPSS rescore
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-03 15:26 UTCOSV refresh
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
Show 26 moreShow fewer
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-15 04:43 UTCOSV refresh
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:28 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-27 21:28 UTCEG score recompute
- 2026-05-27 21:28 UTCVendor advisory
- 2026-05-27 21:28 UTCGHSA enrichment
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
Publicly available exploits
(3 references)Working exploit code is in the public domain (1 Metasploit module) (1 GitHub PoC) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-46727✓ verifiedFirst seen Apr 18, 2019
LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)
Open source ↗ - GitHub PoC4nimanegra/libreofficeExploit1First seen Apr 14, 2019
CVE-2018-16858 exploit implementation
Open source ↗ - Metasploitexploit/multi/fileformat/libreoffice_macro_exec✓ verifiedFirst seen Oct 18, 2018
LibreOffice Macro Code Execution
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Same CWE
10 shownCWE-22
Frequently asked(5)
What is CVE-2018-16858?
When was CVE-2018-16858 disclosed?
Is CVE-2018-16858 actively exploited?
What is the CVSS score of CVE-2018-16858?
How do I remediate CVE-2018-16858?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2018-16858
Is Your Infrastructure Affected by CVE-2018-16858?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.