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 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-14. NVD baseline CVSS 7.8; sources differ by 2.0.
- High exploitation likelihood — EPSS 67%
- Public exploit code is available (Metasploit, Exploit-DB (verified), epss top5pct, epss high, public exploit)
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 9.8(medium)
- EG Risk
- 76(Track*)EG Risk 76/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation67% × 40%Automatability30% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 67%
- EPSS %ILE
- 99%
- 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.
Affected Packages
(6 across 6 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libreoffice | — | 1:6.1.3-1 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libreoffice | — | 1:6.1.3-1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libreoffice | — | 1:6.1.3-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libreoffice | — | 1:6.1.3-1 | — |
Debian:8(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libreoffice | 1:4.3.3-2 ... 1:4.3.3-2+deb8u9 (16 versions) | 1:4.3.3-2+deb8u12 | — |
Debian:9(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| libreoffice | 1:5.2.7-1 ... 1:5.2.7-1+deb9u4~bpo8+1 (7 versions) | 1:5.2.7-1+deb9u5 | — |
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 5× in last 7d / 24× 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-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-16 14:03 UTCEPSS rescore
- 2026-09-16 05:06 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-12 14:56 UTCEPSS rescore
- 2026-09-11 14:47 UTCEPSS rescore
- 2026-09-10 09:27 UTCEPSS rescore
- 2026-09-08 15:34 UTCOSV refresh
- 2026-09-06 13:43 UTCEPSS rescore
- 2026-09-05 15:24 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-04 05:02 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 13:49 UTCEPSS rescore
- 2026-08-30 19:13 UTCEPSS rescore
- 2026-08-28 21:36 UTCEPSS rescore
- 2026-08-27 14:21 UTCEPSS rescore
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-23 00:14 UTCEPSS rescore
- 2026-08-22 01:11 UTCOSV refresh
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-20 22:51 UTCEPSS rescore
- 2026-08-19 17:00 UTCEPSS rescore
Show 69 moreShow fewer
- 2026-08-17 13:42 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:26 UTCEPSS rescore
- 2026-08-13 21:56 UTCEPSS rescore
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-11 13:36 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 05:54 UTCOSV refresh
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 01:27 UTCEPSS rescore
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-26 14:51 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:34 UTCEG score recompute
- 2026-07-22 22:14 UTCEG score recompute
- 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
- 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
- CVE-2001-0825EG 10.0HIGH
- CVE-2001-1009EG 10.0EPSS p93HIGH
- CVE-2001-0554EG 10.0EPSS p99HIGH
- CVE-2001-1162EG 10.0EPSS p96HIGH
- CVE-2001-0414EG 10.0EPSS p100HIGH
- CVE-2001-0191EG 10.0EPSS p92HIGH
- CVE-2001-0301EG 10.0EPSS p91HIGH
- CVE-2001-0197EG 10.0EPSS p96HIGH
- CVE-2001-0233EG 10.0EPSS p96HIGH
- CVE-2001-0010EG 10.0EPSS p98HIGH
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
See which npm, PyPI, Go, and Maven packages are affected by 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.