Skip to content
Emerging threatsHigh

CVE-2018-16858libreoffice Path Traversal

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 Oct 24, 2026 · Also known as DEBIAN-CVE-2018-16858, DLA-1669-1, DSA-4381-1, MGASA-2019-0102, 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), cppunit (mageia) and 22 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
  • 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.

Scores

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.4% of all scored CVEs

Exploit maturity

Weaponized

ATLAS score

67/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Weaponized

Public exploit code

5

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

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,042 affected entries in total
ProductAffected versionsFixed in
libreoffice-fresharchSee advisory6.1.3-1
libreofficedebianSee advisory1:6.1.3-1
cppunitmageiaSee advisory1.14.0-1.mga6
libabwmageiaSee advisory0.1.2-1.mga6
libcdrmageiaSee advisory0.1.5-1.mga6
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

    Oct 24, 2026

Weakness Type

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-356 Missing User Interaction for Potentially Unsafe Action

FAQ

Common Questions.

Is CVE-2018-16858 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 1, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.