CVE-2018-16858

high
Published — · Modified —
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk
9.0

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.

Predictions

Exploit likelihood
90%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.

✚ Propose a mitigation on Community → Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-46727 local multiple verified
Metasploit · 2019-04-18

LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)

Source code queued for fetch — refresh in a moment.

Metasploit modules

LibreOffice Macro Code Execution
Source fetch failed: fetch_error — view the original via the link above.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
Affected
arch Arch Fixed 1 release
VersionStatusFixed in
Fixed 6.1.3-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 1:6.1.3-1
sid Fixed 1:6.1.3-1
forky Fixed 1:6.1.3-1
bullseye Fixed 1:6.1.3-1
bookworm Fixed 1:6.1.3-1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.