nday
CVE-2018-16858

LibreOffice: path traversalTitle composed by nday; the CVE record has none.

[UNKNOWN] / libreoffice

A public PoC appeared 24 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 2 of 4 PoC sources: exploitdb and metasploit. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

path traversal
CWE-22, stated by NVD's analysts
local
AV:L in CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.0) from the CNA redhat
no authentication required
PR:N in CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.0) from the CNA redhat
Metasploit
Metasploit modules exploit/multi/fileformat/libreoffice_macro_exec
Exploit-DB
Exploit-DB entries 46727
LibreOffice
CPE names NVD's analysts give as vulnerable: a:libreoffice:libreoffice
office / document software
CPE names NVD's analysts give as vulnerable: a:libreoffice:libreofficethe product type of LibreOffice in nday's product registry
stage
POC
disclosed
disclosure → PoC
T+24d POC is date-only
cvss
7.8 HIGH v3.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2019-03-25T17:43Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2019-04-18, date only
metasploit
ITWexploited
no record yet
KEVKEV
no record yet

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:L
Local: needs a local or SSH session, or a user tricked into acting on the machine
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

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

CVSS 3.0 vector from the CVE record, scored by the CNA redhat.

Event log

+DISdisclosed

CVE record published by redhat. CVSS 7.8, high.

src cvelist · nday , bulk import · raw
{
  "id": 66000,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2018-16858",
  "occurred_at": "2019-03-25T17:43:08Z",
  "observed_at": "2026-11-12T23:01:25.305088Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "version": "3.0",
      "base_score": 7.8,
      "base_severity": "HIGH"
    },
    "state": "PUBLISHED",
    "date_published": "2019-03-25T17:43:08.000Z",
    "assigner_short_name": "redhat"
  }
}
2019-04-18date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “LibreOffice < 6.0.7 / 6.1.3 - Directory Traversal / Macro Code Execution (Metasploit)” (EDB-46727). Verified by Exploit-DB.

src exploitdb 46727 · nday , bulk import · raw
{
  "id": 26592,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/46727",
  "occurred_at": "2019-04-18T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "46727",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/46727",
    "file": "exploits/multiple/local/46727.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)",
      "Local"
    ],
    "type": "local",
    "title": "LibreOffice < 6.0.7 / 6.1.3 - Directory Traversal / Macro Code Execution (Metasploit)",
    "author": "Metasploit",
    "edb_id": 46727,
    "cve_ids": [
      "CVE-2018-16858"
    ],
    "platform": "multiple",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2019-04-18",
    "date_updated": "2019-04-18",
    "date_published": "2019-04-18"
  }
}
time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/multi/fileformat/libreoffice_macro_exec (LibreOffice Macro Code Execution). The source gives no release time for the module.

src metasploit exploit/multi/fileformat/libreoffice_macro_exec · nday , bulk import · raw
{
  "id": 51076,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/multi/fileformat/libreoffice_macro_exec",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb",
    "rank": 300,
    "check": false,
    "title": "LibreOffice Macro Code Execution",
    "cve_ids": [
      "CVE-2018-16858"
    ],
    "fullname": "exploit/multi/fileformat/libreoffice_macro_exec",
    "rank_name": "normal",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2025-12-17 17:11:13 +0000",
    "vuln_disclosure_date": "2018-10-18"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.