Description
Microsoft is investigating reports of a remote code execution vulnerability in MSHTML that affects Microsoft Windows. Microsoft is aware of targeted attacks that attempt to exploit this vulnerability by using specially-crafted Microsoft Office documents.
An attacker could craft a malicious ActiveX control to be used by a Microsoft Office document that hosts the browser rendering engine. The attacker would then have to convince the user to open the malicious document. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights.
Microsoft Defender Antivirus and Microsoft Defender for Endpoint both provide detection and protections for the known vulnerability. Customers should keep antimalware products up to date. Customers who utilize automatic updates do not need to take additional action. Enterprise customers who manage updates should select the detection build 1.349.22.0 or newer and deploy it across their environments. Microsoft Defender for Endpoint alerts will be displayed as: “Suspicious Cpl File Execution”.
Upon completion of this investigation, Microsoft will take the appropriate action to help protect our customers. This may include providing a security update through our monthly release process or providing an out-of-cycle security update, depending on customer needs.
Please see the Mitigations and Workaround sections for important information about steps you can take to protect your system from this vulnerability.
UPDATE September 14, 2021: Microsoft has released security updates to address this vulnerability. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. Please see the FAQ for important information about which updates are applicable to your system.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Microsoft | Windows 10 Version 1507 | 10.0.10240.0 – < 10.0.10240.19060 | 10.0.10240.19060 |
| Microsoft | Windows 10 Version 1607 | 10.0.14393.0 – < 10.0.14393.4651 | 10.0.14393.4651 |
| Microsoft | Windows 10 Version 1809 | 10.0.17763.0 – < 10.0.17763.2183, 10.0.0 – < 10.0.17763.2183 | 10.0.17763.2183 |
| Microsoft | Windows 10 Version 1909 | 10.0.0 – < 10.0.18363.1801 | 10.0.18363.1801 |
| Microsoft | Windows 10 Version 2004 | 10.0.0 – < 10.0.19041.1237 | 10.0.19041.1237 |
| Microsoft | Windows 10 Version 20H2 | 10.0.0 – < 10.0.19042.1237 | 10.0.19042.1237 |
| Microsoft | Windows 10 Version 21H1 | 10.0.0 – < 10.0.19043.1237 | 10.0.19043.1237 |
| Microsoft | Windows 7 | 6.1.0 – < 6.1.7601.25712 | 6.1.7601.25712 |
| Microsoft | Windows 7 Service Pack 1 | 6.1.0 – < 6.1.7601.25712 | 6.1.7601.25712 |
| Microsoft | Windows 8.1 | 6.3.0 – < 6.3.9600.20120 | 6.3.9600.20120 |
| Microsoft | Windows Server 2008 R2 Service Pack 1 | 6.1.7601.0 – < 6.1.7601.25712 | 6.1.7601.25712 |
| Microsoft | Windows Server 2008 R2 Service Pack 1 (Server Core installation) | 6.1.7601.0 – < 6.1.7601.25712 | 6.1.7601.25712 |
| Microsoft | Windows Server 2008 Service Pack 2 | 6.0.6003.0 – < 6.0.6003.21218 | 6.0.6003.21218 |
| Microsoft | Windows Server 2008 Service Pack 2 (Server Core installation) | 6.0.6003.0 – < 6.0.6003.21218 | 6.0.6003.21218 |
| Microsoft | Windows Server 2012 | 6.2.9200.0 – < 6.2.9200.23462 | 6.2.9200.23462 |
| Microsoft | Windows Server 2012 (Server Core installation) | 6.2.9200.0 – < 6.2.9200.23462 | 6.2.9200.23462 |
| Microsoft | Windows Server 2012 R2 | 6.3.9600.0 – < 6.3.9600.20120 | 6.3.9600.20120 |
| Microsoft | Windows Server 2012 R2 (Server Core installation) | 6.3.9600.0 – < 6.3.9600.20120 | 6.3.9600.20120 |
| Microsoft | Windows Server 2016 | 10.0.14393.0 – < 10.0.14393.4651 | 10.0.14393.4651 |
| Microsoft | Windows Server 2016 (Server Core installation) | 10.0.14393.0 – < 10.0.14393.4651 | 10.0.14393.4651 |
| Microsoft | Windows Server 2019 | 10.0.17763.0 – < 10.0.17763.2183 | 10.0.17763.2183 |
| Microsoft | Windows Server 2019 (Server Core installation) | 10.0.17763.0 – < 10.0.17763.2183 | 10.0.17763.2183 |
| Microsoft | Windows Server 2022 | 10.0.20348.0 – < 10.0.20348.230 | 10.0.20348.230 |
| Microsoft | Windows Server version 2004 | 10.0.0 – < 10.0.19041.1237 | 10.0.19041.1237 |
| Microsoft | Windows Server version 20H2 | 10.0.0 – < 10.0.19042.1237 | 10.0.19042.1237 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-oletools | 0.60.2-2.4 | openSUSE-SU-2026:12022-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Microsoft Office Word Malicious MSHTML RCE
exploit/windows/fileformat/word_mshtml_rce
GitHub 35 repositories · most starred shown
-
lockedbyte/CVE-2021-40444 ★ 1,859 · Sep 10, 2021
CVE-2021-40444 PoC
-
klezVirus/CVE-2021-40444 ★ 844 · Sep 15, 2021
CVE-2021-40444 - Fully Weaponized Microsoft Office Word RCE Exploit
-
aslitsecurity/CVE-2021-40444_builders ★ 177 · Sep 12, 2021
This repo contain builders of cab file, html file, and docx file for CVE-2021-40444 exploit
-
Edubr2020/CVE-2021-40444--CABless ★ 107 · Sep 19, 2021
Modified code so that we don´t need to rely on CAB archives
-
34zY/Microsoft-Office-Word-MSHTML-Remote-Code-Execution-Exploit ★ 65 · Dec 19, 2021
CVE-2021-40444
-
k8gege/CVE-2021-40444 ★ 23 · Sep 14, 2021
-
rfcxv/CVE-2021-40444-POC ★ 20 · Sep 9, 2021
-
ozergoker/CVE-2021-40444 ★ 20 · Sep 8, 2021
Microsoft MSHTML Remote Code Execution Vulnerability CVE-2021-40444
-
kagura-maru/CVE-2021-40444-POC ★ 12 · Oct 28, 2021
An attempt to reproduce Microsoft MSHTML Remote Code Execution (RCE) Vulnerability and using Metasploit Framework.
-
H0j3n/CVE-2021-40444 ★ 12 · Oct 3, 2021
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- openSUSE-SU-2026:12022-1 python313-oletools-0.60.2-2.4 on GA media SUSE / openSUSE Security Updates · Oct 5, 2026
- MSRC-CVE-2021-40444 Microsoft MSHTML Remote Code Execution Vulnerability Microsoft Security Response Center · Aug 16, 2022
References
- Microsoft MSHTML Remote Code Execution Vulnerability vendor-advisory patch