Skip to content
Fencer Intel
high 7.8

CVE-2018-16858 in the critical feed json

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…

published 7y ago modified 4mo ago also EUVD-2018-8650

cvss
7.8
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
67.3%
EPSS 67.3% chance of exploitation in 30 days, percentile 99.3%
public exploits
2
Metasploit and Exploit-DB

Summary

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.

Patch / fix

  • libreoffice libreoffice 6.0.7, 6.1.3
  • libreoffice Debian 14, Debian 13, Debian 12 1:6.1.3-1

debian advisories DEBIAN-CVE-2018-16858

  • libreoffice Ubuntu 14.04 LTS 1:4.2.8-0ubuntu5.5
  • libreoffice Ubuntu 16.04 LTS 1:5.1.6~rc2-0ubuntu1~xenial6

ubuntu advisories UBUNTU-CVE-2018-16858

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libreoffice RHEL 7 1:5.3.6.1-21.el7
  • autocorr-af RHEL 7 1:5.3.6.1-21.el7
  • autocorr-bg RHEL 7 1:5.3.6.1-21.el7
  • autocorr-ca RHEL 7 1:5.3.6.1-21.el7
  • autocorr-cs RHEL 7 1:5.3.6.1-21.el7
  • autocorr-da RHEL 7 1:5.3.6.1-21.el7
  • autocorr-de RHEL 7 1:5.3.6.1-21.el7
  • autocorr-en RHEL 7 1:5.3.6.1-21.el7

red hat advisories RHSA-2019:2130

  • libreoffice SLE Workstation Extension 15 SP1 6.2.5.2-8.5.1
  • libwps SLE Workstation Extension 15 SP1 0.4.10-7.3.3
  • libwps SLE Workstation Extension 15 0.4.10-3.6.7
  • libixion SLE Workstation Extension 15 SP1, SLE Workstation Extension 15 0.14.1-4.3.8
  • liborcus SLE Workstation Extension 15 SP1, SLE Workstation Extension 15 0.14.1-3.3.8
  • libreoffice SLE Workstation Extension 15 6.2.5.2-3.18.5
  • myspell-dictionaries SLE Workstation Extension 15 SP1, SLE Workstation Extension 15, SLE Module for Basesystem 15 SP1 +1 more 20190423-3.9.7
  • libwps SLED 12 SP4, SLED 12 SP3, SLE Workstation Extension 12 SP4 +3 more 0.4.10-10.13.2

suse advisories SUSE-SU-2019:2003-1SUSE-SU-2019:1894-1SUSE-SU-2019:1448-1

  • libreoffice openSUSE Tumbleweed 7.1.5.2-3.13
  • libwps openSUSE Leap 15.1, openSUSE Leap 15.0 0.4.10-lp151.2.3.1
  • libixion openSUSE Leap 15.1, openSUSE Leap 15.0 0.14.1-lp151.4.3.1
  • liborcus openSUSE Leap 15.1, openSUSE Leap 15.0 0.14.1-lp151.3.3.1
  • mdds-1_4 openSUSE Leap 15.1, openSUSE Leap 15.0 1.4.3-lp151.2.1
  • libreoffice openSUSE Leap 15.1, openSUSE Leap 15.0 6.2.5.2-lp151.3.3.4
  • myspell-dictionaries openSUSE Leap 15.1, openSUSE Leap 15.0 20190423-lp151.2.3.1

opensuse advisories openSUSE-SU-2024:10983-1openSUSE-SU-2019:1929-1

  • libreoffice-fresh Arch Linux 6.1.3-1

arch linux advisories AVG-883

Is CVE-2018-16858 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-16858 updated cvss 7.8

libreoffice: Arbitrary python functions in arbitrary modules on the filesystem can be executed without warning

  • Red Hat Enterprise Linux 6 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +60 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux Client (v. 7) autocorr-af 5.3.6.1-21.el7, autocorr-bg 5.3.6.1-21.el7, autocorr-ca 5.3.6.1-21.el7, autocorr-cs 5.3.6.1-21.el7, autocorr-da 5.3.6.1-21.el7, autocorr-de 5.3.6.1-21.el7, +51 more Red Hat Enterprise Linux Client Optional (v. 7) libreoffice 5.3.6.1-21.el7, libreoffice-bsh 5.3.6.1-21.el7, libreoffice-sdk 5.3.6.1-21.el7, libreoffice-glade 5.3.6.1-21.el7, libreoffice-rhino 5.3.6.1-21.el7, libreoffice-help-ar 5.3.6.1-21.el7, +48 more Red Hat Enterprise Linux Server Optional (v. 7) autocorr-af 5.3.6.1-21.el7, autocorr-bg 5.3.6.1-21.el7, autocorr-ca 5.3.6.1-21.el7, autocorr-cs 5.3.6.1-21.el7, autocorr-da 5.3.6.1-21.el7, autocorr-de 5.3.6.1-21.el7, +104 more Red Hat Enterprise Linux Workstation (v. 7) autocorr-af 5.3.6.1-21.el7, autocorr-bg 5.3.6.1-21.el7, autocorr-ca 5.3.6.1-21.el7, autocorr-cs 5.3.6.1-21.el7, autocorr-da 5.3.6.1-21.el7, autocorr-de 5.3.6.1-21.el7, +51 more Red Hat Enterprise Linux Workstation Optional (v. 7) libreoffice 5.3.6.1-21.el7, libreoffice-bsh 5.3.6.1-21.el7, libreoffice-sdk 5.3.6.1-21.el7, libreoffice-glade 5.3.6.1-21.el7, libreoffice-rhino 5.3.6.1-21.el7, libreoffice-help-ar 5.3.6.1-21.el7, +48 more
    fixed: vendor fix RHSA-2019:2130
  • Red Hat Enterprise Linux 8 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +98 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (Metasploit exploit/multi/fileformat/libreoffice_macro_exec)
  2. Published

Exploit prediction

67.32% chance of exploitation in the next 30 days, higher than 99.3% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

CVSS scores

assigned by version score vector
CNA 3.0 7.8 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected products

  • [UNKNOWN] libreoffice

Classification

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

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.