Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2012-1889: MSXML Uninitialized Memory Corruption Vulnerability

Published Jun 13, 2012 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS83.5%100th percentile
CISA KEVYesAdded Jun 8, 2022
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2012-1889CWE-457

CVE-2012-1889 is an uninitialized memory corruption vulnerability affecting Microsoft XML Core Services (MSXML) 3.0, 4.0, 5.0, and 6.0. MSXML accesses an object in memory before it has been initialized, allowing specially crafted content to trigger arbitrary code execution or denial of service. Exploitation can occur when a user visits a malicious webpage through Internet Explorer or views a crafted Office document. The vulnerability was exploited in targeted attacks and incorporated into multiple exploit kits.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary code execution with the rights of the logged-on user. If that user has administrative privileges, an attacker can install programs, read, modify, or delete data, and create accounts with full user rights. Memory corruption can also cause denial of service. Users operating without administrative privileges have a reduced scope of compromise.

Mitigation

If you can’t patch tonight, do this now.

Historical workarounds include Microsoft's Fix it solution, disabling the MSXML 5.0 for Microsoft Office ActiveX control in Internet Explorer using its kill bit, and disabling or prompting before Active Scripting in the Internet and Local intranet zones. Configuring EMET for Internet Explorer, including DEP and ASLR protections, can make exploitation more difficult. Internet Explorer Enhanced Security Configuration on Windows Server and Restricted Sites handling of HTML email provide additional protection. Operating without administrative privileges limits the consequences of successful exploitation.

Remediation

Patch, then assume compromise.

Apply the applicable security updates documented in Microsoft Security Bulletin MS12-043 for every affected MSXML installation. Update packages include KB2719985, KB2721691, KB2721693, KB2687627, KB2596856, and KB2687497, depending on the MSXML version, Windows platform, and associated Office product. The updates correct object initialization before use. Install the replacement packages KB2687627 and KB2687497 where the superseded KB2687324 or KB2596679 packages were previously installed.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
msxml_get_definition_code_exec.rbThis repository contains a single Metasploit module: 'msxml_get_definition_code_exec.rb', which exploits a memory corruption vulnerability (CVE-2012-1889) in Microsoft XML Core Services (MSXML) when accessed via Internet Explorer (versions 6 through 9) on Windows XP SP3, Vista SP2, or Windows 7 SP1. The exploit is delivered through a malicious web page hosted by the attacker's HTTP server (as implemented by the Metasploit module). When a vulnerable user visits the page, the exploit leverages the 'getDefinition' API to trigger uninitialized memory usage in msxml3.dll, leading to remote code execution. The module supports multiple targets and uses ROP chains for exploitation on newer systems. The payload is fully customizable via Metasploit, allowing for reverse shells, Meterpreter sessions, or other post-exploitation actions. The code is written in Ruby and is structured as a standard Metasploit browser exploit module, making it weaponized and ready for operational use.Disclosed Jun 12, 2012 · Framework: metasploit · ruby · browserWeaponizedCVE-2012-1889This repository is a proof-of-concept (PoC) for CVE-2012-1889, a critical vulnerability in the Microsoft XML Core Services (MSXML) component used by Internet Explorer 8 on Windows. The repository contains five files: two module information dumps (1.txt, 2.txt), a README.md (in Chinese) describing the exploit components, a test PoC HTML file (cve-2012-1889-test-poc.html), and a log file (log.txt) from the mona.py ROP gadget generator. The main exploit vector is a malicious HTML file that instantiates a vulnerable ActiveX control (classid:f6D90f11-9c73-11d3-b32e-00C04f990bb4) and triggers the vulnerability via crafted JavaScript. The exploit relies on a non-ASLR module (MSVCR71.dll from Java 6u37) to build a ROP chain for bypassing DEP and achieving code execution. The log.txt file details the ROP chain construction for VirtualProtect/VirtualAlloc, confirming the exploit's intent to execute arbitrary shellcode. The repository is structured as a learning or demonstration project, with supporting files for debugging and ROP chain generation, but the main exploit logic is in the HTML/JavaScript code. No weaponized payload is included, but the PoC demonstrates reliable exploitation of the vulnerability in a controlled environment.whu-enjoy · Disclosed Sep 25, 2016 · html · javascript · browserPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationXml Core Servicesapplication
FAQ

Frequently asked questions

Is CVE-2012-1889 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 8, 2022.
Is there a public exploit for CVE-2012-1889?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2012-1889, the earliest disclosed Jun 12, 2012.
Is there a patch for CVE-2012-1889?
Apply the applicable security updates documented in Microsoft Security Bulletin MS12-043 for every affected MSXML installation. Update packages include KB2719985, KB2721691, KB2721693, KB2687627, KB2596856, and KB2687497, depending on the MSXML version, Windows platform, and associated Office product.
What products are affected by CVE-2012-1889?
Microsoft Corporation Xml Core Services.
How severe is CVE-2012-1889?
CVE-2012-1889 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 83.5% (100th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures6YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.