CVE-2012-0158
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."
Severity
HIGH
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
99.976%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-16
CISA KEV
Listed
added 2021-11-03 · known ransomware use
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-94: Improper Control of Generation of Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability |
|---|---|
| Vendor / product | Microsoft / MSCOMCTL.OCX |
| Date added | 2021-11-03 |
| Federal remediation due date | 2022-05-03 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-10 |
Timeline
- 2012-04-10Published by the CNA21:00 UTC
- 2012-04-25First Exploit-DB entry (EDB-ID 18780)15 days after publication
- 2021-11-03Added to the CISA KEV catalog3494 days after publication
- 2025-02-10CISA SSVC decision recorded4689 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 18780 | remote | windows | 2012-04-25 | yes |
Affected products
| Vendor | Product |
|---|---|
| microsoft | biztalk_server |
| microsoft | commerce_server |
| microsoft | commerce_server_2009 |
| microsoft | office |
| microsoft | office_web_components |
| microsoft | sql_server_2000 |
| microsoft | sql_server_2005 |
| microsoft | sql_server_2008 |
| microsoft | visual_basic |
| microsoft | visual_foxpro |
References
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-027
- http://opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierce/
- http://www.securityfocus.com/bid/52911
- http://www.securitytracker.com/id?1026899
- http://www.securitytracker.com/id?1026900
- http://www.securitytracker.com/id?1026902
- http://www.securitytracker.com/id?1026903
- http://www.securitytracker.com/id?1026904
- http://www.securitytracker.com/id?1026905
- http://www.us-cert.gov/cas/techalerts/TA12-101A.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/74372
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A15462
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0158
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2012-0158'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2012-0158'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2012-0158'curl 'https://api.contrastcyber.com/cve_products/CVE-2012-0158'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2012-0158'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).