Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
HighCISA KEVExploited in the wildPublic exploit

MSCOMCTL.OCX ActiveX Controls Remote Code Execution

IdentifiersCVE-2012-0158CWE-119Also known asms12_027

CVE-2012-0158 is a remote code execution vulnerability in the MSCOMCTL.OCX Common Controls ActiveX library used by multiple Microsoft products, including Microsoft Office. The flaw affects the ListView, ListView2, TreeView, and TreeView2 ActiveX controls. According to the provided content, a crafted web page, Office document, or RTF file can trigger corruption of the control's internal system state, leading to memory corruption and arbitrary code execution. In practice, the vulnerability was widely weaponized in malicious Word and RTF documents delivered via spear-phishing, often to drop and execute embedded payloads. The issue was exploited in the wild beginning in 2012 and remained heavily used by multiple threat actors for years afterward against unpatched systems.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows remote attackers to execute arbitrary code in the context of the user opening the malicious content or rendering the crafted object. In Office-centric attack chains documented in the content, this enabled delivery and execution of second-stage malware including RATs, downloaders, spyware, and espionage implants. Operationally, impact includes full compromise of the affected workstation at the user's privilege level, malware installation, persistence, credential and document theft, surveillance, and follow-on lateral movement depending on the payload and host privileges.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by blocking or strictly controlling Office and RTF attachments from untrusted sources, disabling or restricting ActiveX/OLE content where operationally possible, using Protected View and attachment sandboxing, and preventing automatic execution of embedded objects in Office documents. Additional mitigations include email filtering for exploit-laden documents, network controls to limit outbound connections from Office child processes, application allowlisting, and user privilege reduction to limit post-exploitation impact. These are compensating controls only and do not replace patching.

Remediation

Patch, then assume compromise.

Apply Microsoft's security updates that address CVE-2012-0158 across all affected products. The content indicates the vulnerability was fixed by Microsoft in April 2012 and repeatedly recommends updating affected Microsoft products with the latest security patches. Because the vulnerable MSCOMCTL.OCX component is shared across multiple Microsoft product lines, remediation should include identifying and patching all installed affected software, not only Office. Retire unsupported/end-of-life affected products where patching is no longer feasible.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationBiztalk Serverapplication
Microsoft CorporationCommerce Serverapplication
Microsoft CorporationCommerce Server 2009application
Microsoft CorporationOfficeapplication
Microsoft CorporationOffice Web Componentsapplication
Microsoft CorporationSql Server 2000application
Microsoft CorporationSql Server 2005application
Microsoft CorporationSql Server 2008application
Microsoft CorporationVisual Basicapplication
Microsoft CorporationVisual Foxproapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence41

Every observed campaign linking this CVE to a named adversary.

Associated malware46

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.