Skip to content
Noroxi
CVE-2018-16858· NVD / CVE Program· CNA redhat

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

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.

CriticalCVSS 9.8 · v3.0—Weaponized Fix available
Published
Mar 25, 2019
Updated
Jun 16, 2026
EPSS
67.3% · 99th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

59

Plan

Add it to your regular patch cycle.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
20 / 30 · 67.3%

CNA vs NVD score

NVD
9.8
CNA · redhat
7.8
2.0 point gap

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

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
libreofficelibreoffice

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • libreoffice libreofficebefore 6.0.7
  • libreoffice libreoffice6.1.0 and later · before 6.1.3

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • [UNKNOWN] libreoffice

    • 6.0.7, 6.1.3affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12libreofficebefore 1:6.1.3-11:6.1.3-1
Debian:8libreofficebefore 1:4.3.3-2+deb8u121:4.3.3-2+deb8u12
Debian:9libreofficebefore 1:5.2.7-1+deb9u51:5.2.7-1+deb9u5
openSUSE:Leap 15.0libixionbefore 0.14.1-lp151.4.3.10.14.1-lp151.4.3.1
openSUSE:Leap 15.0liborcusbefore 0.14.1-lp151.3.3.10.14.1-lp151.3.3.1
openSUSE:Leap 15.0libreofficebefore 6.2.5.2-lp151.3.3.46.2.5.2-lp151.3.3.4
openSUSE:Leap 15.0libwpsbefore 0.4.10-lp151.2.3.10.4.10-lp151.2.3.1
openSUSE:Leap 15.0mdds-1_4before 1.4.3-lp151.2.11.4.3-lp151.2.1
openSUSE:Leap 15.0myspell-dictionariesbefore 20190423-lp151.2.3.120190423-lp151.2.3.1
openSUSE:Tumbleweedlibreofficebefore 7.1.5.2-3.137.1.5.2-3.13
Red Hat:enterprise_linux:7::clientautocorr-afbefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-bgbefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-cabefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-csbefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-dabefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-debefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-enbefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-esbefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-fabefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-fibefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-frbefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-gabefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-hrbefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7
Red Hat:enterprise_linux:7::clientautocorr-hubefore 1:5.3.6.1-21.el71:5.3.6.1-21.el7

+96

Other highest-scoring records for the same primary product.

  • CVE-2019-9851LibreLogo global-event script execution
    62This week
  • CVE-2018-10583An information disclosure vulnerability occurs when LibreOffice 6.0.3 and Apache OpenOffice Writer 4.1.5 automatically process and initiate
    54Plan
  • CVE-2019-9848LibreOffice has a feature where documents can specify that pre-installed scripts can be executed on various document events such as mouse-ov
    48Plan
  • CVE-2018-6871LibreOffice before 5.4.5 and 6.x before 6.0.1 allows remote attackers to read arbitrary files via =WEBSERVICE calls in a document, which use
    46Plan
  • CVE-2023-1183Arbitrary file write
    41Plan
  • CVE-2014-0247LibreOffice 4.2.4 executes unspecified VBA macros automatically, which has unspecified impact and attack vectors, possibly related to doc/do
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:libreoffice1:6.1.3-1 · Debian:12Package registry (OSV)
opensuse:libixion0.14.1-lp151.4.3.1 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:liborcus0.14.1-lp151.3.3.1 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:libreoffice6.2.5.2-lp151.3.3.4 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:libwps0.4.10-lp151.2.3.1 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:mdds-1_41.4.3-lp151.2.1 · openSUSE:Leap 15.0Package registry (OSV)
opensuse:myspell-dictionaries20190423-lp151.2.3.1 · openSUSE:Leap 15.0Package registry (OSV)
red hat:autocorr-af1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-bg1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-ca1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-cs1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-da1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-de1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-en1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-es1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-fa1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-fi1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-fr1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:autocorr-ga1:5.3.6.1-21.el7 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
suse:libixion0.14.1-13.9.2 · SUSE:Linux Enterprise Desktop 12 SP3Package registry (OSV)
suse:liborcus0.14.1-10.12.2 · SUSE:Linux Enterprise Desktop 12 SP3Package registry (OSV)
suse:libreoffice6.2.3.2-43.49.1 · SUSE:Linux Enterprise Desktop 12 SP3Package registry (OSV)
suse:libwps0.4.10-10.13.2 · SUSE:Linux Enterprise Desktop 12 SP3Package registry (OSV)
suse:myspell-dictionaries20190423-16.18.1 · SUSE:Linux Enterprise Desktop 12 SP3Package registry (OSV)

Exploit status

Weaponized

A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.

Evidence

  • Metasploit module ×1
  • Exploit-DB entry ×2
  • Proof-of-concept repository on GitHub ×4

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrylocal2019-04-18
Exploit-DB entrylocal2019-04-18
Metasploit moduleexploit/multi/fileformat/libreoffice_macro_execLibreOffice Macro Code Executionexploit2018-10-18
Proof-of-concept repository on GitHubstars:32019-04-14
Proof-of-concept repository on GitHubstars:12019-11-07
Proof-of-concept repository on GitHubstars:12022-11-09
Proof-of-concept repository on GitHubstars:12023-08-26

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Metasploit-159 d
  2. Published
  3. First PoC+19 d
  4. TodaySep 30, 2026+2746 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records