{"id":"CVE-2012-0158","url":"https://www.cyber-defence.io/tools/cve/CVE-2012-0158","generatedAt":"2026-10-31T23:40:23.526Z","title":"Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability","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.\"","published":"2012-04-10T21:55:02.000Z","lastModified":"2026-06-16T23:36:48.000Z","status":"Analyzed","sourceIdentifier":"secure@microsoft.com","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"cwe":["CWE-94"],"affected":["microsoft/office","microsoft/office web components","microsoft/sql server 2000","microsoft/sql server 2005","microsoft/sql server 2008","microsoft/biztalk server","microsoft/commerce server","microsoft/commerce server 2009","microsoft/visual basic","microsoft/visual foxpro"],"epss":{"score":0.99976,"percentile":0.99979,"date":"2026-10-30","history":[]},"kev":{"listed":true,"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Known","notes":"Apply updates per vendor instructions.\nhttps://nvd.nist.gov/vuln/detail/CVE-2012-0158"},"exploits":{"count":1,"verified":true,"firstPublished":"2012-04-25","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":18780,"kind":"exploit","title":"Microsoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit)","url":"https://www.exploit-db.com/exploits/18780","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/windows/remote/18780.rb","file":"exploits/windows/remote/18780.rb","published":"2012-04-25","added":"2012-04-25","updated":"2012-04-25","author":"Metasploit","type":"remote","platform":"windows","port":null,"verified":true,"codes":["CVE-2012-0158","OSVDB-81125","MS12-027"],"tags":"Metasploit Framework (MSF)","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":null}]},"verdict":{"level":"urgent","text":"Known to be exploited in the wild (CISA KEV, CISA remediation deadline 3 May 2022). Treat as an emergency change: patch or isolate now, then hunt for prior compromise."},"changes":[],"references":[{"url":"http://opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierce/","tags":["Broken Link"],"source":"secure@microsoft.com"},{"url":"http://www.securityfocus.com/bid/52911","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"http://www.securitytracker.com/id?1026899","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"http://www.securitytracker.com/id?1026900","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"http://www.securitytracker.com/id?1026902","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"http://www.securitytracker.com/id?1026903","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"http://www.securitytracker.com/id?1026904","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"http://www.securitytracker.com/id?1026905","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"http://www.us-cert.gov/cas/techalerts/TA12-101A.html","tags":["Third Party Advisory","US Government Resource"],"source":"secure@microsoft.com"},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-027","tags":["Patch","Vendor Advisory"],"source":"secure@microsoft.com"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/74372","tags":["Third Party Advisory","VDB Entry"],"source":"secure@microsoft.com"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A15462","tags":["Broken Link"],"source":"secure@microsoft.com"},{"url":"http://opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierce/","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/52911","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id?1026899","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id?1026900","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id?1026902","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id?1026903","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id?1026904","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id?1026905","tags":["Broken Link","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.us-cert.gov/cas/techalerts/TA12-101A.html","tags":["Third Party Advisory","US Government Resource"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-027","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/74372","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A15462","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0158","tags":["US Government Resource"],"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-0158","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}