CVE-2012-0158: Microsoft MSCOMCTL.OCX Remote Code Execution
Microsoft MSCOMCTL.OCX · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.
- CVSS v3.1 (CISA ADP)
- 8.8
- high
- EPSS (exploit probability, 30 days)
- >99.9%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2021-11-03
- US federal due date 2022-05-03
- Automatable (CISA SSVC)
- no
- technical impact: total
CVE-2012-0158 explained
CVE-2012-0158 is a remote code execution vulnerability in the ListView, ListView2, TreeView and TreeView2 ActiveX controls in Microsoft MSCOMCTL.OCX, part of the Common Controls. It affects Office, SQL Server, BizTalk Server, Commerce Server, Visual FoxPro and the Visual Basic 6.0 Runtime. It was exploited in the wild in April 2012 and is known to be used in ransomware campaigns.
Impact
A remote attacker can run arbitrary code by getting a user to open a crafted web site, Office document or .rtf file. No privileges are needed, but user interaction is required. Successful exploitation can fully compromise confidentiality, integrity and availability. CISA rates the technical impact as total. Exploitation is not automatable, so each attack needs a victim to act. CISA lists the flaw as known exploited, with known ransomware use.
Who is affected
The description names Microsoft Office 2003 SP3, 2007 SP2 and SP3, and 2010 Gold and SP1. It also names Office 2003 Web Components SP3, SQL Server 2000 SP4, 2005 SP4, and 2008 SP2, SP3 and R2, and BizTalk Server 2002 SP1. Commerce Server 2002 SP4, 2007 SP2, and 2009 Gold and R2 are listed, as are Visual FoxPro 8.0 SP1 and 9.0 SP2 and the Visual Basic 6.0 Runtime. The CVE record lists no structured affected versions and names no fixed version.
Written with AI from the data on this page and checked against it automatically.
Official 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."
CISA required action: Apply updates per vendor instructions.
CISA notes
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: docs.microsoft.com/en-us/security-updates/securitybulleti…
- CISA's deadline for US federal agencies: 2022-05-03 (passed) – a useful benchmark for everyone else, too.
What to do
- Apply Microsoft's security updates for MSCOMCTL.OCX to every affected Office, SQL Server, BizTalk, Commerce Server, Visual FoxPro and Visual Basic 6.0 installation.
- Follow CISA's required action: apply updates per vendor instructions.
- Inventory systems for the affected product versions and replace or upgrade any that can no longer receive updates.
- Treat untrusted Office documents, .rtf files and web content with caution, and block suspicious attachments at the mail gateway.
- Check systems that handled untrusted documents for signs of compromise, given known exploitation and ransomware use.
The CVE record names no fixed version. Use the Microsoft advisory linked on this page to identify the update for each affected product, and follow CISA's required action to apply updates per vendor instructions. Until updates are applied, limit the opening of untrusted Office documents, .rtf files and web content on affected systems.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')
Questions about CVE-2012-0158
- Is CVE-2012-0158 being exploited?
- Yes. The description states it was exploited in the wild in April 2012. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03, with known ransomware use.
- Does exploitation require user action?
- Yes. The user must open a crafted web site, Office document or .rtf file. No privileges are required, and CISA rates the attack as not automatable.
- What is the deadline for US federal agencies?
- CISA set a US federal due date of 2022-05-03 to apply updates per vendor instructions.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.