CVE-2017-0222 — Microsoft Internet Explorer Remote Code Execution Vulnerability

CVE-2017-0222

Microsoft Internet Explorer — OOB Write in Trident Layout Engine Enables Drive-By RCE; Exploit Kit Adoption; Patched May 2017

What Is Internet Explorer?

Internet Explorer (IE) uses the Trident layout engine (mshtml.dll) to parse and render HTML, CSS, and JavaScript. The layout engine processes complex web content — including CSS selectors, HTML object hierarchies, and dynamic DOM manipulations — in a high-complexity codebase that has been a persistent source of memory corruption vulnerabilities. IE 11 remained in enterprise use well past its mainstream support period due to legacy web application dependencies, making memory corruption vulnerabilities in its layout engine high-value targets for exploit kit operators.

Overview

Actively Exploited. This vulnerability has been added to CISA's Known Exploited Vulnerabilities (KEV) Catalog on February 25, 2022. Federal agencies are required to apply mitigations per BOD 22-01.

CVE-2017-0222 is a remote code execution vulnerability in Internet Explorer caused by improper handling of objects in memory (out-of-bounds write, CWE-787) in the Trident layout engine. An attacker who hosts a specially crafted web page can exploit this vulnerability to execute arbitrary code in the context of the current user when visited with IE. Patched in the May 2017 security update. The vulnerability follows the standard drive-by download pattern and was adopted by exploit kit operators targeting IE users in enterprise environments. CISA added CVE-2017-0222 to the KEV catalog in February 2022.

Affected Versions

Internet Explorer Version Status
Internet Explorer 9 Vulnerable
Internet Explorer 10 Vulnerable
Internet Explorer 11 Vulnerable
All above with May 2017 update Fixed

Affected on Windows Vista SP2, Windows Server 2008, Windows 7 SP1, Windows 8.1, Windows Server 2008 R2/2012/2012 R2, Windows 10 (all versions prior to patch), and Windows Server 2016.

Technical Details

Root Cause: Out-of-Bounds Write in Object Memory Handling

CVE-2017-0222 is an out-of-bounds write vulnerability (CWE-787) in Internet Explorer's Trident layout engine. When IE processes certain HTML elements or CSS properties that trigger specific object lifecycle events (allocation, manipulation, and deallocation), the engine performs a write operation beyond the bounds of an allocated buffer. The out-of-bounds write corrupts adjacent heap memory — typically overwriting metadata, function pointers, or virtual function table (vtable) pointers that can be redirected to attacker-controlled code.

Standard IE exploit pattern:

  1. Attacker crafts a web page containing malicious HTML/JS that triggers the OOB write
  2. The OOB write corrupts heap memory in a controlled way (heap grooming positions the target object adjacent to the vulnerable allocation)
  3. The corrupted vtable pointer is dereferenced, redirecting execution to attacker shellcode
  4. Shellcode executes in the security context of IE and the logged-in user
  5. If running in Protected Mode, the attacker may chain with a sandbox escape (such as CVE-2017-0210) to achieve full system access

Attack Characteristics

Attribute Detail
Attack Vector Network — user visits malicious URL
Authentication None required
User Interaction Required (visit malicious page)
IE Protected Mode Limits impact; may require chaining with sandbox escape
Impact Remote code execution as current user

Discovery

Reported to Microsoft through coordinated disclosure and patched in the May 2017 Patch Tuesday update.

Exploitation Context

  • Exploit kit adoption: CVE-2017-0222 was incorporated into exploit kits operating in 2017, targeting the significant population of enterprise users still running IE 11 for legacy intranet application compatibility
  • Enterprise targeting: Organizations that had not enforced browser migration were particularly vulnerable — IE was often the only browser available on corporate workstations locked to specific web application compatibility requirements
  • Chained exploitation: CVE-2017-0222 was used alongside IE zone escalation vulnerabilities (like CVE-2017-0210) and Windows LPE exploits to achieve full system compromise from a single web visit
  • CISA KEV (2022): Added February 2022 reflecting confirmed active exploitation years after the patch; the extended IE support lifecycle (EOL June 2022) meant this vulnerability remained relevant in enterprise environments for five years

Remediation

CISA BOD 22-01 Deadline: August 25, 2022. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
  1. Apply May 2017 security update — install the May 9, 2017 Cumulative Security Update for Internet Explorer on all Windows systems.

  2. Migrate from Internet Explorer — IE reached end of life on June 15, 2022 and no longer receives security updates; all organizations should migrate to Microsoft Edge (with IE Compatibility Mode for legacy applications).

  3. Enable Enhanced Protected Mode — if IE must remain in use, enable Enhanced Protected Mode to sandbox IE content and limit the impact of memory corruption exploitation.

  4. Deploy Windows Defender Exploit Guard — ASR rules block shellcode execution techniques commonly used in browser exploits (heap spray, ROP chains).

  5. Block IE access to external URLs — use web proxies or Windows Firewall rules to prevent IE from accessing untrusted external URLs while allowing intranet access, reducing the attack surface for drive-by exploitation.

Key Details

PropertyValue
CVE ID CVE-2017-0222
Vendor / Product Microsoft — Internet Explorer
NVD Published2017-05-12
NVD Last Modified2025-10-22
CVSS 3.1 Score8.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-787 — Out-of-Bounds Write find similar ↗
CISA KEV Added2022-02-25
CISA KEV Deadline2022-08-25
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-08-25. Apply updates per vendor instructions.

Timeline

DateEvent
2017-05-09Microsoft releases May 2017 Patch Tuesday security update patching CVE-2017-0222
2017-05-12CVE-2017-0222 published by NVD
2022-02-25Added to CISA Known Exploited Vulnerabilities catalog
2022-08-25CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2017-0222 Vulnerability Database
CISA KEV Catalog Entry US Government
Microsoft Security Advisory — CVE-2017-0222 Vendor Advisory