---
id: "CVE-2012-0158"
kind: "vulnerability"
aliases: ["CVE-2012-0158"]
title: "Microsoft MSCOMCTL.OCX: Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability"
severity: "critical"
cvss: 9.3
epss: 0.99976
exploited: true
status: "open"
category: "infrastructure"
products: [{"name": "Microsoft MSCOMCTL.OCX", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["exploited", "infrastructure", "legacy-windows", "microsoft-office", "ransomware", "windows"]
not_affected_if: ["no-vulnerable-mscomctl", "patched-windows"]
published_at: "2012-04-10T21:55:01+00:00"
first_seen_at: "2026-10-23T19:11:53+00:00"
updated_at: "2026-10-23T21:57:34+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2012-0158", "first_seen_at": "2026-10-23T19:11:53+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2012-0158", "first_seen_at": "2026-10-23T19:13:44+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-0158", "first_seen_at": "2026-10-23T21:57:34+00:00"}]
---

# Microsoft MSCOMCTL.OCX: Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability

Microsoft's MSCOMCTL.OCX common controls library has an unspecified flaw that allows remote code execution. An attacker who gets a user to open a crafted file or page can take full control of that user's session on the Windows machine.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Microsoft MSCOMCTL.OCX affected ? fixed ?

## Fix

Apply the Microsoft security update for CVE-2012-0158 per vendor instructions (CISA required action).

## Timeline

- 2026-10-23T19:11:53+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2012-0158
- 2026-10-23T19:13:44+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2012-0158
- 2026-10-23T21:57:34+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2012-0158

## From the sources

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."

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
