Skip to content
Vulnerability Intelligence

CVE-2018-16858

HighPublic exploit

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.

Published Mar 25, 2019 · Updated Aug 4, 2026 · Also known as DEBIAN-CVE-2018-16858, DLA-1669-1, DSA-4381-1, SUSE-SU-2019:1448-1, SUSE-SU-2019:1894-1, SUSE-SU-2019:2003-1, UBUNTU-CVE-2018-16858

Key Facts

Patch immediately
  • CVE-2018-16858 is a high-severity vulnerability (CVSS 7.8 v3.1) affecting libreoffice-fresh (arch), libreoffice (debian), autocorr-af (oracle) and 22 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 67% probability of exploitation in the next 30 days.
  • Fixed versions are available, including autocorr-af 1:5.3.6.1-21.0.1.el7, autocorr-bg 1:5.3.6.1-21.0.1.el7, autocorr-ca 1:5.3.6.1-21.0.1.el7.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

CVSS v3.1

7.8

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

EPSS (30-day exploit likelihood)

67%

Higher than 99.3% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2018-16858 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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.

Affected Products

2,018 affected entries in total
ProductAffected versionsFixed in
libreoffice-fresharchSee advisory6.1.3-1
libreofficedebianSee advisory1:6.1.3-1
autocorr-aforacleSee advisory1:5.3.6.1-21.0.1.el7
autocorr-bgoracleSee advisory1:5.3.6.1-21.0.1.el7
autocorr-caoracleSee advisory1:5.3.6.1-21.0.1.el7
20 more affected products in the full CVE brief

Patched Releases

autocorr-af

1:5.3.6.1-21.0.1.el7

autocorr-bg

1:5.3.6.1-21.0.1.el7

autocorr-ca

1:5.3.6.1-21.0.1.el7

autocorr-cs

1:5.3.6.1-21.0.1.el7

autocorr-da

1:5.3.6.1-21.0.1.el7

autocorr-de

1:5.3.6.1-21.0.1.el7

autocorr-en

1:5.3.6.1-21.0.1.el7

autocorr-es

1:5.3.6.1-21.0.1.el7

autocorr-fa

1:5.3.6.1-21.0.1.el7

autocorr-fi

1:5.3.6.1-21.0.1.el7

autocorr-fr

1:5.3.6.1-21.0.1.el7

autocorr-ga

1:5.3.6.1-21.0.1.el7

autocorr-hr

1:5.3.6.1-21.0.1.el7

autocorr-hu

1:5.3.6.1-21.0.1.el7

autocorr-is

1:5.3.6.1-21.0.1.el7

autocorr-it

1:5.3.6.1-21.0.1.el7

autocorr-ja

1:5.3.6.1-21.0.1.el7

autocorr-ko

1:5.3.6.1-21.0.1.el7

autocorr-lb

1:5.3.6.1-21.0.1.el7

autocorr-lt

1:5.3.6.1-21.0.1.el7

autocorr-mn

1:5.3.6.1-21.0.1.el7

autocorr-nl

1:5.3.6.1-21.0.1.el7

autocorr-pl

1:5.3.6.1-21.0.1.el7

autocorr-pt

1:5.3.6.1-21.0.1.el7

autocorr-ro

1:5.3.6.1-21.0.1.el7

Timeline

  1. Publicly disclosed

    Mar 25, 2019

  2. Last updated

    Aug 4, 2026

Weakness Type

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-356 Product UI does not Warn User of Unsafe Actions

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2018-16858 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo