Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2012-0158: Microsoft Common Controls ActiveX Remote Code Execution

Published Apr 10, 2012 · Updated 13 days 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
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2012-0158CWE-94 · Improper Control of Generation of…
Also known asms12_027

CVE-2012-0158 is a critical remote code execution vulnerability in the ListView, ListView2, TreeView, and TreeView2 ActiveX controls in Microsoft Common Controls. Specially crafted webpages or documents cause the controls to corrupt system state, enabling arbitrary code execution with the logged-on user's privileges. The vulnerable component was distributed with affected releases of Microsoft Office, Office Web Components, SQL Server, BizTalk Server, Commerce Server, Visual FoxPro, and the Visual Basic 6.0 Runtime. Exploitation requires a user to view malicious web content or open a crafted document. The vulnerability was exploited in targeted attacks in April 2012 and addressed by Microsoft security bulletin MS12-027.

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 compromises the confidentiality, integrity, and availability of resources accessible to the logged-on user. Attackers can execute malware, access or modify data, and potentially crash the affected application. If the user has administrative privileges, attackers can install programs, create accounts, and take control of the system. The vulnerability has been used extensively for espionage-related initial access and malware delivery and is also associated with known ransomware campaign use.

Mitigation

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

Until updates are deployed, apply Microsoft's documented Internet Explorer ActiveX kill-bit workaround for all four vulnerable controls. This workaround addresses browser-based instantiation and should not be treated as a complete substitute for patching document-handling applications. Avoid opening untrusted or unexpected Office and Rich Text Format documents, and use accounts without administrative privileges to limit exploitation impact.

Remediation

Patch, then assume compromise.

Install all applicable security updates identified in Microsoft bulletin MS12-027. The updates replace the vulnerable Common Controls component and set ActiveX kill bits for the affected controls. Select updates according to the installed product, architecture, service pack, and servicing branch; verify installation against the relevant Microsoft Knowledge Base guidance. Third-party developers redistributing the controls should update their development installations and distribute corrected components with their applications. Retire or migrate affected end-of-life software.

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 CorporationBiztalk Serverapplication
Microsoft CorporationCommerce Serverapplication
Microsoft CorporationCommerce Server 2009application
Microsoft CorporationMicrosoft Officeapplication
Microsoft CorporationOffice Web Componentsapplication
Microsoft CorporationSql Server 2000application
Microsoft CorporationSql Server 2005application
Microsoft CorporationSql Server 2008application
Microsoft CorporationVisual Basicapplication
Microsoft CorporationVisual Foxproapplication
FAQ

Frequently asked questions

Is CVE-2012-0158 exploited in the wild?
Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2012-0158?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2012-0158, the earliest disclosed Apr 10, 2012.
Is there a patch for CVE-2012-0158?
Install all applicable security updates identified in Microsoft bulletin MS12-027. The updates replace the vulnerable Common Controls component and set ActiveX kill bits for the affected controls.
What products are affected by CVE-2012-0158?
Microsoft Corporation Biztalk Server, Microsoft Corporation Commerce Server, Microsoft Corporation Microsoft Office, Microsoft Corporation Office Web Components, Microsoft Corporation Visual Basic, and 5 more.
How severe is CVE-2012-0158?
CVE-2012-0158 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 100.0% (100th percentile) as of Nov 4, 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 evidence57Every report linking this CVE to a named adversary.
Associated malware90Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.