{"uuid": "d7546745-d107-4116-a1c2-6280c2a46f56", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2018-16858", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb", "content": "{\"aliases\": [], \"arch\": \"x86, x64\", \"author\": [\"Alex Inf\\u00fchr\", \"Shelby Pace\"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": false, \"default_credential\": false, \"description\": \"LibreOffice comes bundled with sample macros written in Python and\\n          allows the ability to bind program events to them. A macro can be tied\\n          to a program event by including the script that contains the macro and\\n          the function name to be executed. Additionally, a directory traversal\\n          vulnerability exists in the component that references the Python script\\n          to be executed. This allows a program event to execute functions from Python\\n          scripts relative to the path of the samples macros folder. The pydoc.py script\\n          included with LibreOffice contains the tempfilepager function that passes\\n          arguments to os.system, allowing RCE.\\n\\n          This module generates an ODT file with a mouse over event that\\n          when triggered, will execute arbitrary code.\", \"disclosure_date\": \"2018-10-18\", \"fullname\": \"exploit/multi/fileformat/libreoffice_macro_exec\", \"is_install_path\": true, \"mod_time\": \"2025-12-17 17:11:13 +0000\", \"name\": \"LibreOffice Macro Code Execution\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"unknown-reliability\"], \"SideEffects\": [\"unknown-side-effects\"], \"Stability\": [\"unknown-stability\"]}, \"path\": \"/modules/exploits/multi/fileformat/libreoffice_macro_exec.rb\", \"platform\": \"Linux,Windows\", \"post_auth\": false, \"rank\": 300, \"ref_name\": \"multi/fileformat/libreoffice_macro_exec\", \"references\": [\"CVE-2018-16858\", \"URL-https://insert-script.blogspot.com/2019/02/libreoffice-cve-2018-16858-remote-code.html\"], \"rport\": null, \"session_types\": false, \"targets\": [\"Windows\", \"Linux\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:39.147494Z"}