Vulnerability & Exploit Database

Back to search

Apache OpenOffice Text Document Malicious Macro Execution

This module generates an Apache OpenOffice Text Document with a malicious macro in it. To exploit successfully, the targeted user must adjust the security level in Macro Security to either Medium or Low. If set to Medium, a prompt is presented to the user to enable or disable the macro. If set to Low, the macro can automatically run without any warning. The module also works against LibreOffice.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • sinn3r <sinn3r [at]>



  • Apache OpenOffice on Windows (PSH)
  • Apache OpenOffice on Linux/OSX (Python)


  • windows
  • python


  • x86, x64
  • python



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/misc/openoffice_document_macro msf exploit(openoffice_document_macro) > show targets ...targets... msf exploit(openoffice_document_macro) > set TARGET <target-id> msf exploit(openoffice_document_macro) > show options and set options... msf exploit(openoffice_document_macro) > exploit