module

Microsoft Office Word Malicious MSHTML RCE

Disclosed
Sep 23, 2021
Created
Dec 9, 2021

Description

This module creates a malicious docx file that when opened in Word on a vulnerable Windows
system will lead to code execution. This vulnerability exists because an attacker can
craft a malicious ActiveX control to be used by a Microsoft Office document that hosts
the browser rendering engine.

Authors

lockedbyte
klezVirus
thesunRider
mekhalleh (RAMELLA Sébastien)

Platform

Windows

Architectures

x64

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/windows/fileformat/word_mshtml_rce
msf exploit(word_mshtml_rce) > show targets
...targets...
msf exploit(word_mshtml_rce) > set TARGET < target-id >
msf exploit(word_mshtml_rce) > show options
...show and set options...
msf exploit(word_mshtml_rce) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.