CVE-2012-0158 in Microsoft Office and 9 more products
The (1) ListView, (2) ListView2, (3) TreeView, and (4) TreeView2 ActiveX controls in MSCOMCTL.OCX in the Common Controls in Microsoft Office 2003 SP3, 2007 SP2 and SP3, and 2010 Gold and SP1; Office 2003 Web Components SP3; SQL Server 2000 SP4, 2005 SP4, and 2008 SP2, SP3, and R2; BizTalk Server 2002 SP1; Commerce S...
Affects 10 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Microsoft | Office | 2003 2007 2010 |
| Microsoft | Visual Basic | 6.0 |
| Microsoft | Commerce Server | 2002 2007 |
| Microsoft | Office Web Components | 2003 |
| Microsoft | Visual Foxpro | 8.0 9.0 |
| Microsoft | Biztalk Server | 2002 |
| Microsoft | Sql Server 2000 | No version listed by the source |
| Microsoft | Sql Server 2005 | No version listed by the source |
| Microsoft | Sql Server 2008 | r2 |
| Microsoft | Commerce Server 2009 | 2002 2007 r2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Yes added 2021-11-03 |
|---|---|
| Public exploit | Reported · reference |
Official description
The (1) ListView, (2) ListView2, (3) TreeView, and (4) TreeView2 ActiveX controls in MSCOMCTL.OCX in the Common Controls in Microsoft Office 2003 SP3, 2007 SP2 and SP3, and 2010 Gold and SP1; Office 2003 Web Components SP3; SQL Server 2000 SP4, 2005 SP4, and 2008 SP2, SP3, and R2; BizTalk Server 2002 SP1; Commerce Server 2002 SP4, 2007 SP2, and 2009 Gold and R2; Visual FoxPro 8.0 SP1 and 9.0 SP2; and Visual Basic 6.0 Runtime allow remote attackers to execute arbitrary code via a crafted (a) web site, (b) Office document, or (c) .rtf file that triggers "system state" corruption, as exploited in the wild in April 2012, aka "MSCOMCTL.OCX RCE Vulnerability."
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2012-0158 |
|---|---|
| BreachSpider ID | BS-2012-GLOBAL-180104-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2012-04-10 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2012-0158 affects multiple versions of Microsoft Office, SQL Server, BizTalk Server, Commerce Server, Visual FoxPro, and Visual Basic 6.0 Runtime due to vulnerabilities in the MSCOMCTL.OCX ActiveX controls. This vulnerability allows remote attackers to execute arbitrary code via a crafted web site, Office document, or .rtf file, leading to system state corruption. Given the high CVSS score and the existence of public exploits, immediate attention is required to mitigate potential risks in ICS/OT environments.
The vulnerability can be triggered by a remote attacker who crafts a malicious web site, Office document, or .rtf file. When a user interacts with these files, the ActiveX controls in MSCOMCTL.OCX are exploited, leading to arbitrary code execution and system state corruption. This can result in unauthorized access, data manipulation, and potential disruption of critical operations in ICS/OT environments.
Compensating controls AI-drafted, review before use
Implement strict file type and content filtering on all network boundaries to prevent the transmission of potentially malicious .rtf, .doc, and .html files. Ensure that all systems are updated to the latest versions and that unnecessary ActiveX controls are disabled.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2012-0158?
CVE-2012-0158 affects multiple versions of Microsoft Office, SQL Server, BizTalk Server, Commerce Server, Visual FoxPro, and Visual Basic 6.0 Runtime due to vulnerabilities in the MSCOMCTL.OCX ActiveX controls. This vulnerability allows remote attackers to execute arbitrary code via a crafted web site, Office document, or .rtf file, leading to system state corruption. Given the high CVSS score and the existence of public exploits, immediate attention is required to mitigate potential risks in IC
What is the CVSS score for CVE-2012-0158?
CVE-2012-0158 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 100.0%.
Is CVE-2012-0158 actively exploited?
Yes. CVE-2012-0158 is in the CISA known-exploited catalog (added 2021-11-03). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2012-0158?
Priority: IMMEDIATE. Advisory: https://docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-027 PSIRT: [email protected]
What systems are affected by CVE-2012-0158?
CVE-2012-0158 affects Microsoft Office, Visual Basic, Commerce Server, Office Web Components, Visual Foxpro, Biztalk Server, Sql Server 2000, Sql Server 2005, Sql Server 2008, Commerce Server 2009.
What NERC-CIP standard applies to CVE-2012-0158?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to critical cyber assets, which could lead to the compromise of the reliability of the bulk electric system.
What IEC 62443 requirement maps to CVE-2012-0158?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves the protection of software components from unauthorized access and manipulation, which is essential for maintaining the integrity and availability of ICS/OT systems.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Microsoft","product":"Office","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.