cve.bz

CVE-2018-16858 libreoffice libreoffice: Path traversal

9.8 criticalExploitEPSS 67%

Critical (9.8) in libreoffice libreoffice. EPSS 67% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
67% (unchanged from 67% a week ago; 67% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-356 Missing User Interaction for Potentially Unsafe Action
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16858 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16858?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16858?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16858 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libreoffice:libreofficebefore 6.0.7
libreoffice:libreofficefrom 6.1.0 before 6.1.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libreoffice1:4.3.3-2+deb8u12DLA-1669-1
Debian9libreoffice1:5.2.7-1+deb9u5DSA-4381-1
Debian12, 13, 14libreoffice1:6.1.3-1DEBIAN-CVE-2018-16858
Ubuntu14.04:LTSlibreoffice1:4.2.8-0ubuntu5.5UBUNTU-CVE-2018-16858 USN-3883-1
Ubuntu16.04:LTSlibreoffice1:5.1.6~rc2-0ubuntu1~xenial6UBUNTU-CVE-2018-16858 USN-3883-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationautocorr-af, autocorr-bg, autocorr-ca and 179 more1:5.3.6.1-21.el7RHSA-2019:2130
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4, Linux Enterprise Software Development Kit 12 SP3 and 3 morelibixion0.14.1-13.9.2SUSE-SU-2019:1448-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4, Linux Enterprise Software Development Kit 12 SP3 and 3 moreliborcus0.14.1-10.12.2SUSE-SU-2019:1448-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4, Linux Enterprise Software Development Kit 12 SP3 and 3 morelibreoffice6.2.3.2-43.49.1SUSE-SU-2019:1448-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4, Linux Enterprise Software Development Kit 12 SP3 and 3 morelibwps0.4.10-10.13.2SUSE-SU-2019:1448-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4, Linux Enterprise Workstation Extension 12 SP3 and 1 moremyspell-dictionaries20190423-16.18.1SUSE-SU-2019:1448-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Workstation Extension 15 and 1 moremyspell-dictionaries20190423-3.9.7SUSE-SU-2019:1894-1
SUSELinux Enterprise Workstation Extension 15libreoffice6.2.5.2-3.18.5SUSE-SU-2019:1894-1
SUSELinux Enterprise Workstation Extension 15libwps0.4.10-3.6.7SUSE-SU-2019:1894-1
SUSELinux Enterprise Workstation Extension 15, Linux Enterprise Workstation Extension 15 SP1libixion0.14.1-4.3.8SUSE-SU-2019:1894-1
SUSELinux Enterprise Workstation Extension 15, Linux Enterprise Workstation Extension 15 SP1liborcus0.14.1-3.3.8SUSE-SU-2019:1894-1
SUSELinux Enterprise Workstation Extension 15 SP1libreoffice6.2.5.2-8.5.1SUSE-SU-2019:2003-1
SUSELinux Enterprise Workstation Extension 15 SP1libwps0.4.10-7.3.3SUSE-SU-2019:2003-1
openSUSELeap 15.0, Leap 15.1libixion0.14.1-lp151.4.3.1openSUSE-SU-2019:1929-1
openSUSELeap 15.0, Leap 15.1liborcus0.14.1-lp151.3.3.1openSUSE-SU-2019:1929-1
openSUSELeap 15.0, Leap 15.1libreoffice6.2.5.2-lp151.3.3.4openSUSE-SU-2019:1929-1
openSUSELeap 15.0, Leap 15.1libwps0.4.10-lp151.2.3.1openSUSE-SU-2019:1929-1
openSUSELeap 15.0, Leap 15.1mdds-1_41.4.3-lp151.2.1openSUSE-SU-2019:1929-1
openSUSELeap 15.0, Leap 15.1myspell-dictionaries20190423-lp151.2.3.1openSUSE-SU-2019:1929-1
openSUSETumbleweedlibreoffice7.1.5.2-3.13openSUSE-SU-2024:10983-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7libreoffice-1:5.3.6.1-21.el7Fixed 2019-08-08RHSA-2019:2130
Red Hat Enterprise Linux 6libreofficeOut of support scope
Red Hat Enterprise Linux 8libreofficeNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16858.

Public exploits

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET EXPLOIT LibreOffice pydoc RCE Inbound (CVE-2018-16858) sid 2033456

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON