CVE-2012-0158: Microsoft Common Controls ActiveX Remote Code Execution
- Vendor
- Microsoft Corporation
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.
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.
Exploits
1 exploit validated by Mallory's analysis.
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.
References
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.
Recent activity
87 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.