{"id":"CVE-2018-16858","published":"2019-03-25T17:43:08Z","modified":"2024-08-05T10:32:54Z","title":"It was found that libreoffice before versions 6.0.7 and 6.1.3 was vulnerable to a directory traversal attack which…","vendor":"[UNKNOWN]","product":"libreoffice","tier":"core","eol":null,"affectedVersions":[{"vendor":"[UNKNOWN]","product":"libreoffice","versions":["6.0.7","6.1.3"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":7.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.67321,"percentile":0.99321,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":6,"pulses":[{"name":"Thor Lite Linux 64 - 03.31.25 - Sample PopOS Device","url":"https://otx.alienvault.com/pulse/67eb87f8beff23dfe3508000","created":"2025-04-01"},{"name":"SCANID: S-KhOoOrXsco8: Thor Lite Linux 64 - Sample Lab Device 2 - incomplete (not enriched)","url":"https://otx.alienvault.com/pulse/67c6bb5aa601e91b1314ff44","created":"2025-03-04"},{"name":"Thor Lite Scanner - Cigabuntu (Parrot Version) vs. The Book of Shadows","url":"https://otx.alienvault.com/pulse/666ac558d08da6cfb3ba135b","created":"2024-06-13"},{"name":"Thor-Lite Linux 64 (06.11.24) - enriched a bit more but not 'pruned'","url":"https://otx.alienvault.com/pulse/6668b85065eec626e4766a38","created":"2024-06-11"},{"name":"Thor Lite Scan - 10.7.15 - Ubuntu Scan on Archived Files","url":"https://otx.alienvault.com/pulse/664cc3c1938ed0b9abf026a2","created":"2024-05-21"},{"name":"Proof Point Emerging Exploit list","url":"https://otx.alienvault.com/pulse/6399fdc966948f6b537b9762","created":"2022-12-14"}],"provenance":"machine"},"cwes":[{"id":"CWE-356","name":"Missing User Interaction for Potentially Unsafe Action"}],"references":[{"url":"https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html","tags":["x_refsource_MISC"]},{"url":"http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/46727/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2130","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://seclists.org/bugtraq/2019/Aug/28","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2018-8650","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-8650","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":46727,"url":"https://www.exploit-db.com/exploits/46727","title":"LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)","type":"local","platform":"multiple","date":"2019-04-18","verified":true,"provenance":"source"},{"id":46727,"url":"https://www.exploit-db.com/exploits/46727","title":"LibreOffice < 6.0.7 / 6.1.3 - Macro Code Execution (Metasploit)","type":"local","platform":"multiple","date":"2019-04-18","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2019-04-18"},"pocGithub":{"count":4,"skipped":0,"earliest":"2019-04-14","earliestUrl":"https://github.com/4nimanegra/libreofficeExploit1","repos":[{"name":"4nimanegra/libreofficeExploit1","url":"https://github.com/4nimanegra/libreofficeExploit1","stars":3,"created":"2019-04-14"},{"name":"phongld97/detect-cve-2018-16858","url":"https://github.com/phongld97/detect-cve-2018-16858","stars":1,"created":"2019-11-07"},{"name":"bantu2301/CVE-2018-16858","url":"https://github.com/bantu2301/CVE-2018-16858","stars":1,"created":"2022-11-09"},{"name":"Henryisnotavailable/CVE-2018-16858-Python","url":"https://github.com/Henryisnotavailable/CVE-2018-16858-Python","stars":1,"created":"2023-08-26"}]},"metasploit":[{"name":"LibreOffice Macro Code Execution","module":"exploit/multi/fileformat/libreoffice_macro_exec","type":"exploit","disclosureDate":"2018-10-18","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb"}],"first":{"date":"2018-10-18","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/46727/","http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html"],"flow":[],"timeline":[{"date":"2018-10-18","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2019-04-14, Exploit-DB 2019-04-18","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb","provenance":"source"},{"date":"2019-03-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-16858","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":32.2,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.86,"detail":"percentile 0.9932"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 2 Exploit-DB entries; 1 NVD exploit link; 4 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":1.92,"detail":"6 pulses"},{"name":"CVSS severity","points":5.46,"detail":"base score 7.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}