# CVE-2018-16858

- Priority: **Prioritise**
- Reason: Weaponized exploit (exploit-database, 18-04-2019)
- Next step: Check applicability: affected before 6.0.7, 6.1.3 (CNA); fix release not confirmed
- Status: published
- Published: 2019-03-25 · Modified: 2024-08-05
- Aliases: MGASA-2019-0102, SUSE-SU-2019:1448-1, SUSE-SU-2019:1894-1, SUSE-SU-2019:2003-1, RHSA-2019:2130, UBUNTU-CVE-2018-16858, DEBIAN-CVE-2018-16858, DLA-1669-1, DSA-4381-1, openSUSE-SU-2019:1929-1
- Record: https://cvemate.com/vulnerability/CVE-2018-16858 · JSON: https://cvemate.com/vulnerability/CVE-2018-16858/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 67.321%, percentile 99.319%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 3 (reference, exploit-database, metasploit)

## Affected (first 20 of 261)

- debian libreoffice (Debian): \< 1:6.1.3-1 \| \< 1:4.3.3-2+deb8u12 \| \< 1:5.2.7-1+deb9u5
- ubuntu libreoffice (Ubuntu): \< 1:4.2.8-0ubuntu5.5 \| \< 1:5.1.6~rc2-0ubuntu1~xenial6
- libreoffice libreoffice: \< 6.0.7 \| ≥ 6.1.0, \< 6.1.3
- mageia cppunit (Mageia): \< 1.14.0-1.mga6
- mageia libabw (Mageia): \< 0.1.2-1.mga6
- mageia libcdr (Mageia): \< 0.1.5-1.mga6
- mageia libcmis (Mageia): \< 0.5.2-1.mga6
- mageia libe-book (Mageia): \< 0.1.3-1.mga6
- mageia libepubgen (Mageia): \< 0.1.1-2.mga6
- mageia libetonyek (Mageia): \< 0.1.9-1.mga6
- mageia libfreehand (Mageia): \< 0.1.2-2.mga6
- mageia libixion (Mageia): \< 0.14.1-1.mga6
- mageia libmspub (Mageia): \< 0.1.4-1.mga6
- mageia libmwaw (Mageia): \< 0.3.14-2.mga6
- mageia libnumbertext (Mageia): \< 1.0.5-1.mga6
- mageia libodfgen (Mageia): \< 0.1.7-1.mga6
- mageia liborcus (Mageia): \< 0.14.1-1.mga6
- mageia libpagemaker (Mageia): \< 0.0.4-1.mga6
- mageia libqxp (Mageia): \< 0.0.2-1.mga6
- mageia libreoffice (Mageia): \< 6.1.5.2-1.2.mga6

## References (first 20 of 48)

- <https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/>
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858>
- <http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html>
- <http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec>
- <https://www.exploit-db.com/exploits/46727/>
- <https://access.redhat.com/errata/RHSA-2019:2130>
- <https://seclists.org/bugtraq/2019/Aug/28>
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html>
- <https://advisories.mageia.org/MGASA-2019-0102.html>
- <https://bugs.mageia.org/show_bug.cgi?id=24309>
- <https://www.debian.org/security/2019/dsa-4381>
- <https://www.suse.com/support/update/announcement/2019/suse-su-20191448-1/>
- <https://bugzilla.suse.com/1089811>
- <https://bugzilla.suse.com/1116451>
- <https://bugzilla.suse.com/1121874>
- <https://bugzilla.suse.com/1123131>
- <https://bugzilla.suse.com/1123455>
- <https://bugzilla.suse.com/1124062>
- <https://bugzilla.suse.com/1124869>
- <https://bugzilla.suse.com/1127760>

---

Data as of 2026-12-05T08:03:45.487Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
