Microsoft MSHTML Remote Code Execution Vulnerability (CVE-2021-40444)
A remote code execution flaw existed in the MSHTML browser rendering engine used by Microsoft Office documents. An attacker could craft a malicious ActiveX control inside a document and convince a user to open it, potentially running code on the victim's machine.
Originally disclosed on Microsoft
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.
FAQ
There are three updates listed in the Security Updates table for Windows 8.1, Windows Server 2012 R2, and Windows Server 2012. Which updates do I need to apply to my system to be protected from this vulnerability? Customers running Windows 8.1, Windows Server 2012 R2, or Windows Server 2012 can apply either the Monthly Rollup or both the Security Only and the IE Cumulative updates. I am running Windows 7, Windows Server 2008 R2, or Windows Server 2008. Do I need to apply both the Monthly Rollup and the IE Cumulative updates? The Monthly Rollup for Windows 7, Windows Server 2008 R2, and Windows Server 2008 includes the update for this vulnerability. Customers who apply the Monthly Rollup do not need to apply the IE Cumulative update. Customers who only apply Security Only updates need to also apply the IE Cumulative update to be protected from this vulnerability.
Windows MSHTML Platform
Windows MSHTML Platform
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a flaw in how MSHTML handles ActiveX controls embedded in Office documents, allowing a crafted control to execute code.
Impact
An attacker could run code on the victim's system, though users with fewer rights could be less impacted and Defender products provided detection and protection for the known vulnerability.
What the attacker needed
Victim opens a malicious document; target runs affected Windows/MSHTML
The fix
Microsoft released security updates on 14 September 2021 and recommends installing them immediately.
How it was found
- Craft a malicious ActiveX control.
- Embed it in a Microsoft Office document that hosts the browser rendering engine.
- Convince the user to open the malicious document.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
MSHTML is the old engine Internet Explorer used to draw web pages, and Office can use it to show web content inside documents. A flaw there let a booby-trapped document load a malicious ActiveX control (a small downloadable program) and run code on the computer. The victim only had to open the document.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.