Microsoft MSCOMCTL.OCX
Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability
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."
Timeline
Days relative to CVE publicationFirst public PoC 13 days after publication; added to CISA KEV 9.6 years after publication. First PoC: Metasploit exploit: MS12-027 MSCOMCTL ActiveX Buffer Overflow (exploit/windows/fileformat/ms12_027_mscomctl_bof) (Metasploit, 23 Apr 2012).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Sunqiz/CVE-2012-0158-reproduction | 15 Aug 2022 +10.3 y | 1 | PoC
Flags · score 40
Below the suspicion threshold (50); does not change the assessment. |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| RobertoLeonFR-ES/Exploit-Win32.CVE-2012-0158.F.doc | 3 Jan 2022 +9.7 y | 0 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Microsoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit) | 25 Apr 2012 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: MS12-027 MSCOMCTL ActiveX Buffer Overflow (exploit/windows/fileformat/ms12_027_mscomctl_bof) | 23 Apr 2012 | 14 Nov 2026 |