Remote code executionin Microsoft MSCOMCTL.OCX.
On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 3 Nov 2021. Ransomware groups use it too.
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: 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 requires US federal agencies to fix it by 3 May 2022.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 13 Dec 2011CVE ID reserved by microsoft.
- 10 Apr 2012Published in the CVE List.
- 10 Apr 2012Metasploit module: MS12-027 MSCOMCTL ActiveX Buffer Overflow.
- 3 Nov 2021Added to CISA's Known Exploited Vulnerabilities list.
- 3 Nov 2021CISA lists known use in ransomware campaigns.
- 3 Jan 2022First public proof of concept on GitHub.
- 22 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
2 proof of concept repositories on GitHub. No fix or workaround is known yet, so we count them but do not link to them.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Same weakness: Code injection
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- www.us-cert.gov third-party-advisory, x_refsource_CERT
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- opensources.info x_refsource_MISC
- docs.microsoft.com vendor-advisory, x_refsource_MS
- oval.cisecurity.org vdb-entry, signature, x_refsource_OVAL
- www.securityfocus.com vdb-entry, x_refsource_BID
- exchange.xforce.ibmcloud.com vdb-entry, x_refsource_XF
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- www.cisa.gov government-resource
Patchminder. CVE-2012-0158: Remote code execution in Microsoft MSCOMCTL.OCX. https://patchminder.com/cve/cve-2012-0158/ (accessed 5 December 2026).