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.
The product's user interface does not warn the user before undertaking an unsafe action on behalf of that user. This makes it easier for attackers to trick users into inflicting damage to their system.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://www.libreoffice.org/about-us/security/advisories/cve-2018-16858/ | vendor advisory |
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16858 | issue tracking third party advisory |
http://packetstormsecurity.com/files/152560/LibreOffice-Macro-Code-Execution.html | exploit vdb entry third party advisory |
http://www.rapid7.com/db/modules/exploit/multi/fileformat/libreoffice_macro_exec | third party advisory |
https://www.exploit-db.com/exploits/46727/ | exploit vdb entry third party advisory |
https://access.redhat.com/errata/RHSA-2019:2130 | vendor advisory |
https://seclists.org/bugtraq/2019/Aug/28 | mailing list |
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00059.html | vendor advisory |