CVE DatabaseCVE-2021-33742
한국어 권고문 →
CVE-2021-337427.5/HIGHCISA KEVCWE-787CWE-787

Windows MSHTML Platform Remote Code Execution Vulnerability (CVE-2021-33742) Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, mshtml
Published Date
2021-06-08
CVSS v3.1
7.5
HIGH
EPSS (30d)
59.4%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Windows Operating Systems and applications utilizing the MSHTML (Trident) rendering engine

Impact

Remote Code Execution (RCE) and complete system compromise if a user views a specially crafted web page or document

Mitigation

Apply the latest Microsoft cumulative security updates immediately, or restrict ActiveX/MSHTML rendering for untrusted files

Affected Products & Version Scope

All unpatched Windows OS versions including Windows 7, 8.1, 10, 11, and Windows Server 2008, 2012, 2016, 2019, 2022 containing the MSHTML engine

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The primary remediation is to apply the official cumulative security updates provided by Microsoft. You can force Windows Update via PowerShell to ensure the patch is applied.

powershell
# Install and force Windows Update to apply the latest cumulative security patches
Install-Module PSWindowsUpdate -Force -SkipPublisherCheck
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, disable ActiveX controls in Internet Explorer and MSHTML via the registry to mitigate the primary attack vector.

powershell
# Disable ActiveX controls in the Internet Zone via Registry
$RegistryPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3'
If (-not (Test-Path $RegistryPath)) {
    New-Item -Path $RegistryPath -Force
}
New-ItemProperty -Path $RegistryPath -Name '1201' -Value 3 -PropertyType DWord -Force
New-ItemProperty -Path $RegistryPath -Name '1001' -Value 3 -PropertyType DWord -Force

3. Log Audit & IoC Verification Commands

Verify the patch status by checking the file version of the core MSHTML library (mshtml.dll) on the system.

powershell
# Check the file version of mshtml.dll to verify patch level
$file = 'C:\Windows\System32\mshtml.dll'
if (Test-Path $file) {
    $versionInfo = (Get-Item $file).VersionInfo
    Write-Host 'Current MSHTML.dll Version:' $versionInfo.FileVersion
} else {
    Write-Host 'mshtml.dll not found on this system.' -ForegroundColor Red
}
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Due to active in-the-wild exploitation, immediately deploy the latest Windows cumulative updates and restrict untrusted Office document execution.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2021-33742) is an Out-of-Bounds Write (CWE-787) vulnerability existing in the legacy Windows MSHTML (Trident) engine. The root cause lies in insufficient input validation when the MSHTML engine parses specially crafted HTML elements, stylesheets, or embedded media objects. This lack of validation allows an attacker to write data past the allocated buffer boundary in memory, leading to memory corruption and enabling arbitrary code execution.

2. Exploitation Mechanics & Attack Scenario

An attacker exploits this vulnerability by hosting a malicious website containing specially crafted HTML/JS content, or by embedding malicious active content inside Microsoft Office documents (such as Word or Excel) that rely on the MSHTML engine for rendering. The attack vector requires user interaction, typically initiated via phishing emails or social engineering to lure the victim into opening the document or visiting the link. Once opened, the MSHTML engine processes the malformed data, triggers the heap overflow, overwrites adjacent memory structures, and executes the attacker's shellcode under the security context of the current user.

3. Infrastructure & Business Impact

As a vulnerability listed in the CISA KEV catalog, CVE-2021-33742 has been actively exploited in the wild. With a high EPSS score of over 0.59, the likelihood of exploitation attempts remains significant. Successful exploitation allows attackers to gain initial access to endpoints, which can be chained with Local Privilege Escalation (LPE) exploits to deploy ransomware, exfiltrate sensitive data, or perform lateral movement across the corporate network.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-33742)

FAQ

Q1. How critical is CVE-2021-33742 and is it actively exploited in the wild?

CVE-2021-33742 is rated CVSS 7.5 (HIGH) with a 30-day EPSS exploitation probability of 59.4%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-33742?

Primary impacted vendors include microsoft across windows, mshtml. Scope summary: All unpatched Windows OS versions including Windows 7, 8.1, 10, 11, and Windows Server 2008, 2012, 2016, 2019, 2022 containing the MSHTML engine

Q3. What temporary mitigations or workarounds exist for CVE-2021-33742 before patching?

[Mitigation] Apply the latest Microsoft cumulative security updates immediately, or restrict ActiveX/MSHTML rendering for untrusted files Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-33742

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (microsoft)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-33742 Windows MSHTML Platform Remote Code Execution Vulnerability (CVE-2021-33742) Analysis and Mitigation Guide (CVSS 7.5) - Patch & Workaround | CVE Pulse