{"id":"CVE-2018-16858","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-16858","generatedAt":"2026-10-29T00:42:51.996Z","title":"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.","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.","published":"2019-03-25T18:29:00.000Z","lastModified":"2026-06-17T01:44:56.000Z","status":"Modified","sourceIdentifier":"secalert@redhat.com","cvss":{"version":"3.0","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-356","CWE-22"],"affected":["libreoffice/libreoffice"],"epss":{"score":0.67321,"percentile":0.99302,"date":"2026-10-27","history":[{"date":"2026-09-21","score":0.66174,"percentile":0.99269},{"date":"2026-09-22","score":0.67321,"percentile":0.99273}]},"kev":{"listed":false},"exploits":{"count":1,"verified":true,"firstPublished":"2019-04-18","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":46727,"kind":"exploit","title":"LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)","url":"https://www.exploit-db.com/exploits/46727","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/local/46727.rb","file":"exploits/multiple/local/46727.rb","published":"2019-04-18","added":"2019-04-18","updated":"2019-04-18","author":"Metasploit","type":"local","platform":"multiple","port":null,"verified":true,"codes":["CVE-2018-16858"],"tags":"Local","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 67.3%, higher than 99% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html","source":"secalert@redhat.com"},{"url":"http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"secalert@redhat.com"},{"url":"http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec","tags":["Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2019:2130","source":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858","tags":["Issue Tracking","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"https://seclists.org/bugtraq/2019/Aug/28","source":"secalert@redhat.com"},{"url":"https://www.exploit-db.com/exploits/46727/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"secalert@redhat.com"},{"url":"https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/","tags":["Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2019:2130","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://seclists.org/bugtraq/2019/Aug/28","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/46727/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-16858","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}