9.3

CVE-2012-0158: Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability

KEVRansomware
Analyzed
Published 10-04-2012Last modified 22-10-2025

Vulnerability summary

CVE-2012-0158 is a high (CVSS 9.3) Improper Control of Generation of Code vulnerability in Microsoft MSCOMCTL.OCX. It is known to be exploited: CISA lists it, first on 03-11-2021. It has been used in ransomware campaigns. EPSS estimates a 99.98% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Act nowransomware

Known ransomware use (CISA, 03-11-2021)

Source freshness unavailable

How is this decided?
CVSS score
9.3/10
010
High · v2.0 (NVD)
EPSS score
99.98%
0%100%
Critical · 0.00 pp in 30 days
KEVExploited in the wildCritical · listed in 1 catalog
RansomwareKnown useFlagged by CISA
Public exploits2exploit-database, metasploit

Timeline

  1. 10-04-2012
    PublishedVulnerability first disclosed.
  2. 03-11-2021
    Added to CISA KEVExploitedMicrosoft MSCOMCTL.OCX Remote Code Execution Vulnerability
  3. 03-05-2022
    CISA remediation dueDeadline passedApply updates per vendor instructions.
  4. 22-10-2025
    Last modifiedVulnerability information updated.

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

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

99.98%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

No change 0.00 pp

From 99.98% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
03-11-2021
Federal due date
03-05-2022
Ransomware
ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

CISA required action

Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2012-0158

Public exploits

2 found
  • exploit-databaseremotewindowsVerified

    Microsoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit)

    Maturity: weaponized

  • MetasploitMetasploitremoteUnverified

    MS12-027 MSCOMCTL ActiveX Buffer Overflow

    exploit/windows/fileformat/ms12_027_mscomctl_bof

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Microsoft10 products

1 vendor · 10 products

References

13 links
Show all 13 references