CVE-2012-0158

HIGH(8.8)KEVLikely Exploited

Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability

Description

CVE-2012-0158 is a high-severity remote code execution vulnerability in the MSCOMCTL.OCX ActiveX controls used by multiple Microsoft products. The flaw exists in the ListView, ListView2, TreeView, and TreeView2 ActiveX controls within the Common Controls library, allowing a remote attacker to execute arbitrary code and take complete control of an affected system. CISA has confirmed active exploitation by listing this vulnerability in its Known Exploited Vulnerabilities (KEV) catalog. With an exceptional EPSS score of 94.3% (99.9th percentile), CVE-2012-0158 remains one of the most widely exploited vulnerabilities despite being over a decade old, affecting Microsoft Office, SQL Server, BizTalk Server, Commerce Server, Visual FoxPro, and Visual Basic Runtime.

KEV Information

Vendor
Microsoft
Product
MSCOMCTL.OCX
Date Added
November 3, 2021
Due Date
May 3, 2022
Required Action
Apply updates per vendor instructions.

CVSS Score

Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in Calculator
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
2.8
Impact Score
5.9

CWEs

Affected Products

VendorProductVersion
microsoftoffice2003; 2007; 2010
microsoftoffice web components2003
microsoftsql server 2000-
microsoftsql server 2005-
microsoftsql server 2008-; r2
microsoftbiztalk server2002
microsoftcommerce server2002; 2007
microsoftcommerce server 2009-; r2
microsoftvisual basic6.0
microsoftvisual foxpro8.0; 9.0

Multiple CVSS Assessments

Source: [email protected](Primary)
8.8
HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0(Secondary)
8.8
HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References

Weakness Type

CWE-94: Improper Control of Generation of Code ('Code Injection')

Code Injection occurs when software constructs code segments using externally-influenced input without properly neutralizing special elements that could modify the intended code. In CVE-2012-0158, the MSCOMCTL.OCX ActiveX controls fail to properly validate input, leading to system state corruption that enables attackers to inject and execute arbitrary code through crafted websites, Office documents, or RTF files.

Learn more: CWE-94 — Improper Control of Generation of Code

Impact Analysis

CVE-2012-0158 carries a CVSS 3.1 score of 8.8 (HIGH), representing a severe threat to organizations running the wide array of affected Microsoft products. The vulnerability is exploitable over the network with low attack complexity and requires no authentication, though user interaction is needed in the form of visiting a malicious website or opening a crafted document. Successful exploitation results in complete compromise of confidentiality, integrity, and availability, giving the attacker full control over the affected system in the context of the current user. The EPSS score of 94.3% in the 99.9th percentile confirms that this vulnerability is among the most actively exploited, and the broad attack surface spanning Office, SQL Server, and multiple other products amplifies organizational risk significantly.

Exploit Maturity

CVE-2012-0158 is confirmed as actively exploited through its listing in the CISA Known Exploited Vulnerabilities catalog, with a remediation deadline of 2022-05-03. The EPSS score of 94.3% (99.9th percentile) places this among the most exploited vulnerabilities ever tracked, indicating near-certain exploitation activity even years after disclosure. Despite being published in April 2012, this vulnerability continues to be actively leveraged in spear-phishing campaigns and targeted attacks, as many legacy systems remain unpatched. The vulnerability can be triggered through multiple vectors including crafted websites, Office documents, and RTF files, providing attackers with flexible exploitation options.

Remediation

  1. Apply Microsoft security bulletin MS12-027 immediately as mandated by the CISA KEV catalog. Install patches from Microsoft Security Updates for all affected products.
  2. Verify that all instances of affected products have been patched, including Microsoft Office 2003 SP3, 2007 SP2/SP3, and 2010 Gold/SP1; Office 2003 Web Components SP3; SQL Server 2000 SP4, 2005 SP4, and 2008 SP2/SP3/R2; BizTalk Server 2002 SP1; Commerce Server 2002 SP4, 2007 SP2, and 2009 Gold/R2; Visual FoxPro 8.0 SP1 and 9.0 SP2; and Visual Basic 6.0 Runtime.
  3. Implement kill bits for the vulnerable ActiveX controls via Group Policy to prevent instantiation in Internet Explorer and other ActiveX hosts, even if patching is delayed.
  4. Deploy email and web content filtering to block malicious Office documents and RTF files targeting this vulnerability, with particular focus on documents containing embedded ActiveX controls.
  5. Conduct a thorough audit of legacy systems to identify any remaining unpatched installations, as the wide product footprint of this vulnerability means affected components may exist in unexpected locations.

Technical Details

CVE-2012-0158 affects the MSCOMCTL.OCX component, which provides common ActiveX controls (ListView, ListView2, TreeView, TreeView2) used across numerous Microsoft products. The vulnerability triggers system state corruption when a crafted input is processed through these controls, enabling an attacker to redirect execution flow and achieve arbitrary code execution. The CVSS vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H reflects network-based exploitation with low complexity, no privilege requirements, and mandatory user interaction through opening a malicious document or visiting a crafted website. The broad scope of affected products, from Office suites and SQL Server to development tools like Visual FoxPro and Visual Basic Runtime, indicates that the vulnerable MSCOMCTL.OCX component is a shared dependency across Microsoft's product ecosystem, making comprehensive patching essential.

Frequently Asked Questions

Is CVE-2012-0158 being actively exploited?

Yes. CVE-2012-0158 is listed in the CISA Known Exploited Vulnerabilities catalog, confirming active exploitation. The EPSS score of 94.3% (99.9th percentile) indicates near-certain exploitation activity. Despite being over a decade old, this vulnerability remains widely exploited in targeted attack campaigns.

What products are affected by CVE-2012-0158?

CVE-2012-0158 affects a wide range of Microsoft products including Office 2003, 2007, and 2010; Office Web Components 2003; SQL Server 2000, 2005, and 2008; BizTalk Server 2002; Commerce Server 2002, 2007, and 2009; Visual FoxPro 8.0 and 9.0; and Visual Basic 6.0 Runtime.

How do I fix CVE-2012-0158?

Apply Microsoft security bulletin MS12-027 for all affected products. Additionally, implement ActiveX kill bits for the vulnerable controls and deploy content filtering to block malicious documents targeting this vulnerability.

How severe is CVE-2012-0158?

CVE-2012-0158 has a CVSS 3.1 score of 8.8 (HIGH). With an EPSS score in the 99.9th percentile and a vast attack surface across multiple Microsoft products, this is one of the most severe and widely exploited vulnerabilities in the Microsoft ecosystem.

CVSS Score

8.8
HIGH(8.8)

EPSS Score

EPSS Score99.97%
EPSS Percentile100.0%

Dates

PublishedApril 10, 2012
Last ModifiedJune 16, 2026
StatusAnalyzed
CVSS Versionv3.1

Need Help With Vulnerability Management?

Our security experts can help you prioritize and remediate vulnerabilities effectively.