CVE-2012-0158: Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability
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.
Known ransomware use (CISA, 03-11-2021)
Source freshness unavailable
How is this decided?Timeline
- 10-04-2012PublishedVulnerability first disclosed.
- 03-11-2021Added to CISA KEVExploitedMicrosoft MSCOMCTL.OCX Remote Code Execution Vulnerability
- 03-05-2022CISA remediation dueDeadline passedApply updates per vendor instructions.
- 22-10-2025Last 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- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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
Known exploited
Compare KEV catalogs- Added
- 03-11-2021
- Federal due date
- 03-05-2022
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
CISA required action
Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2012-0158
Public exploits
2 foundMicrosoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit)
Maturity: weaponized
MS12-027 MSCOMCTL ActiveX Buffer Overflow
exploit/windows/fileformat/ms12_027_mscomctl_bof
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Microsoft10 products
- biztalk_server2002:sp1
- commerce_server2002:sp4 | 2007:sp2
- commerce_server_2009na | r2
- officeEOL2003:sp3 | 2007:sp2 | 2007:sp3 | 2010 | 2010:sp1
- office_web_components2003:sp3
1 vendor · 10 products
References
13 links- www.us-cert.gov/cas/techalerts/TA12-101A.htmlThird Party AdvisoryX Refsource CERTUS Government Resource
- opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierce/X Refsource MISCBroken Link
- docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-027Vendor AdvisoryX Refsource MSPatch
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A15462VDB EntrySignatureX Refsource OVALBroken Link
Show all 13 references
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0158Government ResourceUS Government Resource