---
cve: "CVE-2018-16858"
severity: "HIGH"
cvss: 7.8
epss: "67.3%"
vendor: "[UNKNOWN]"
kev: false
exploited: false
published: "2019-03-25 18:29:00"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-10T20:22:21+02:00"
---

# CVE-2018-16858

> 7.8 HIGH · 🧪 PoC

## Beschreibung

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-Vektor

```
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Erforderlich | good |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Exploit-Evidenz

- [EDB-46727 — LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)](https://www.exploit-db.com/exploits/46727) ✅

## Patch verfügbar (OSV)

- da2c4acc4e2e51252d2ef1751bc77966be32ec80 (Commit)
- 15411734fb5201c821167bc19984e3ff06467983 (Commit)

## Referenzen

- <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>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2018-16858) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
