9.8
CRITICAL
CVE-2018-16858
LibreOffice Directory Traversal Macro Execution Vulnerability
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.

INFO

Published Date :

March 25, 2019, 6:29 p.m.

Last Modified :

Nov. 21, 2024, 3:53 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2018-16858 has a 9 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2018-16858 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Libreoffice libreoffice
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Python implementation of CVE-2018-16858

Python

Updated: 1 year, 2 months ago
0 stars 0 fork 0 watcher
Born at : Aug. 26, 2023, 2:50 p.m. This repo has been linked 1 different CVEs too.

None

Python

Updated: 2 years ago
1 stars 0 fork 0 watcher
Born at : Nov. 9, 2022, 1:36 p.m. This repo has been linked 1 different CVEs too.

A small collection of File converter vulnerability

Updated: 1 year ago
5 stars 1 fork 1 watcher
Born at : March 22, 2022, 4:25 p.m. This repo has been linked 15 different CVEs too.

Set of dockerfiles meant for throw-away instances that achieve a singular purpose: to "safely" interact (run, play, unzip, etc) with programs or files without the need of a full VM to avoid compromise of the host machine. Think of it as a bomb disposal device for files you don't trust that much but still need to run, unzip or play.

dockerfiles security sandboxing podman containerization container-security

Dockerfile

Updated: 3 years, 10 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 1, 2021, 10:28 p.m. This repo has been linked 10 different CVEs too.

None

Updated: 3 months, 1 week ago
82 stars 32 fork 32 watcher
Born at : Oct. 2, 2020, 2:49 p.m. This repo has been linked 1111 different CVEs too.

None

Updated: 8 months, 4 weeks ago
35 stars 4 fork 4 watcher
Born at : Sept. 30, 2020, 7:14 p.m. This repo has been linked 3 different CVEs too.

None

Python

Updated: 4 years ago
1 stars 1 fork 1 watcher
Born at : Nov. 7, 2019, 7:40 a.m. This repo has been linked 1 different CVEs too.

CVE-2018-16858 exploit implementation

Ruby Shell

Updated: 11 months, 1 week ago
3 stars 1 fork 1 watcher
Born at : April 14, 2019, 11:10 a.m. This repo has been linked 1 different CVEs too.

Valhalla API Client

CSS Makefile Python SCSS

Updated: 4 months ago
62 stars 12 fork 12 watcher
Born at : March 7, 2019, 4:25 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2018-16858 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-16858 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Oct. 09, 2019

    Action Type Old Value New Value
    Added CVSS V3 Red Hat, Inc. AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CWE Red Hat, Inc. CWE-356
  • CVE Modified by [email protected]

    Aug. 18, 2019

    Action Type Old Value New Value
    Added Reference http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 16, 2019

    Action Type Old Value New Value
    Added Reference https://seclists.org/bugtraq/2019/Aug/28 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 06, 2019

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2019:2130 [No Types Assigned]
  • Modified Analysis by [email protected]

    Apr. 23, 2019

    Action Type Old Value New Value
    Removed CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Changed CVSS V2 (AV:N/AC:M/Au:N/C:P/I:P/A:P) (AV:N/AC:L/Au:N/C:P/I:P/A:P)
    Changed CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://www.exploit-db.com/exploits/46727/ No Types Assigned https://www.exploit-db.com/exploits/46727/ Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec No Types Assigned http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec Third Party Advisory
    Changed Reference Type http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
  • CVE Modified by [email protected]

    Apr. 19, 2019

    Action Type Old Value New Value
    Added Reference http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 18, 2019

    Action Type Old Value New Value
    Added Reference https://www.exploit-db.com/exploits/46727/ [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 18, 2019

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html [No Types Assigned]
  • Initial Analysis by [email protected]

    Mar. 27, 2019

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 (AV:N/AC:M/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858 Issue Tracking, Third Party Advisory
    Changed Reference Type https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/ No Types Assigned https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/ Vendor Advisory
    Added CWE CWE-22
    Added CPE Configuration OR *cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:* versions up to (excluding) 6.0.7 *cpe:2.3:a:libreoffice:libreoffice:*:*:*:*:*:*:*:* versions from (including) 6.1.0 up to (excluding) 6.1.3
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2018-16858 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

95.96 }} -0.30%

score

0.99531

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability