Vulnerabilities

Vulnerability · CVE-2012-0158

Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability

Published Jan 1, 2012 · catalog updated Jun 16, 2026 · Microsoft MSCOMCTL.OCX

Patch now

CVE-2012-0158 is in the CISA known-exploited catalog, due May 3, 2022. Confirm Microsoft MSCOMCTL.OCX against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Severity
High8.8
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
99.98%
Remediation
Remediation guidance
Affected products
cpe microsoft/biztalk server · cpe microsoft/office · cpe microsoft/office web components · cpe microsoft/sql server 2000 · cpe microsoft/sql server 2005 · cpe microsoft/visual basic

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."

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe microsoft/biztalk server2002
  • cpe microsoft/office2003
  • cpe microsoft/office2007
  • cpe microsoft/office2010
  • cpe microsoft/office web components2003
  • cpe microsoft/sql server 2000version unspecified
  • cpe microsoft/sql server 2005version unspecified
  • cpe microsoft/visual basic6.0
  • vendor Microsoft MSCOMCTL.OCXversion unspecified
  • vendor n/a n/aversion unspecified

How to fix CVE-2012-0158

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2012-0158 is in the CISA known-exploited catalog, due May 3, 2022. Confirm Microsoft MSCOMCTL.OCX against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Compare what you have installed with microsoft/biztalk server 2002; microsoft/office web components 2003; microsoft/visual basic 6.0. Apply updates per vendor instructions.

What should an analyst verify?

CWE-94: Code Injection. EPSS 99.98%. The CISA KEV listing is the exploitation evidence. A public exploit reference is linked in Sources. That is not the same as confirmed exploitation. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Apr 10, 2012 · Catalog

    Detected

    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;

  2. Nov 3, 2021 · CISA KEV

    Known exploited

    Apply updates per vendor instructions.

  3. May 3, 2022 · CISA KEV

    Remediation due

    Apply updates per vendor instructions.

  4. Jun 16, 2026 · Catalog

    Updated

    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;

Sources

  • CISA KEVConfirmed exploitationCVE-2012-0158

    Microsoft MSCOMCTL.OCX contains an unspecified vulnerability that allows for remote code execution, allowing an attacker to take complete control of an affected system under the context of the current user.

    cisa.gov
  • CVE.orgVulnerability recordCVE-2012-0158

    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

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2012-0158

    30-day exploitation probability 100.0%

    first.org
  • Exploit DatabasePublic exploit reference18780

    Public archive entry. The exploit body is not stored here.

    exploit-db.com
  • Metasploit ModulesPublic exploit moduleexploit_windows/fileformat/ms12_027_mscomctl_bof

    Public module reference (average). Module source is not copied into this catalog.

    rapid7.com
  • NIST NVDVulnerability recordCVE-2012-0158

    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

    nvd.nist.gov
  • VulnCheck KEVConfirmed exploitationCVE-2012-0158

    Microsoft MSCOMCTL.OCX contains an unspecified vulnerability that allows for remote code execution, allowing an attacker to take complete control of an affected system under the context of the current user.

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.