CVE-2012-0158 — 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."
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- Confirmed exploitation (CISA KEV)+35
- Used in ransomware campaigns (CISA)+10
- Exploited by 9 threat actor(s) (MITRE ATT&CK)+10
- Public exploit/PoC (metasploit, exploitdb)+20
- EPSS 100% (30-day exploitation probability)+15
- Technical severity (high)+6
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
CISA SSVC assessment CISA
Three decision points CISA publishes for the CVEs it assesses (SSVC 2.0.3). A stakeholder decision, not a severity score.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Documented patch — docs.microsoft.com (NIST National Vulnerability Database)
CISA required action CISA
Apply updates per vendor instructions.
US federal deadline: May 3, 2022 — passed 1627 day(s) ago
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Microsoft Biztalk Server, Microsoft Commerce Server, Microsoft Commerce Server 2009…).
- Treat as emergency remediation: the CVE is in CISA KEV (confirmed exploitation).
- The attack is network-based and needs no privileges: restrict exposure (ACLs, VPN, WAF) until patched.
- Apply the fixed version or the patch documented under Remediation.
- Exploitation requires user interaction: tighten email/web filtering and warn affected users.
- EPSS ahead of 100% of scored CVEs: prioritize it in the patch queue.
- Search available logs for exploit probes matching the vulnerability class (injection), errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Microsoft | Biztalk Server | version 2002-sp1 | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Commerce Server | version 2007-sp2version 2002-sp4 | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Commerce Server 2009 | version r2versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Office | version 2007-sp2version 2010-sp1version 2010version 2007-sp3version 2003-sp3 | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Office Web Components | version 2003-sp3 | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Sql Server 2000 | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Sql Server 2005 | versions not specified by the source | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Sql Server 2008 | versions not specified by the sourceversion r2version r2-sp1 | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Visual Basic | version 6.0 | Vulnerable | NIST National Vulnerability Database |
| Microsoft | Visual Foxpro | version 8.0-sp1version 9.0-sp2 | Vulnerable | NIST National Vulnerability Database |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 8.8 | CVSS 3.1 | High | 2.8 | 5.9 | nvd@nist.gov via NIST National Vulnerability Database |
| 8.8 | CVSS 3.1 | High | 2.8 | 5.9 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 via NIST National Vulnerability Database |
| 8.8 | CVSS 3.1 | High | — | — | GitHub, Inc. via GitHub Security Advisories |
| 8.8 | CVSS 3.1 | High | — | — | CISA-ADP via CVE Program (cve.org) e CISA ADP |
| 9.3 | CVSS 2.0 | High | 8.6 | 10.0 | nvd@nist.gov via NIST National Vulnerability Database |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (score shown at the top: nvd@nist.gov) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
CISA KEV details CISA
CISA lists a CVE once it has evidence of exploitation against real targets.
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a reference date.
Public exploits, PoCs and detection templates
Public code that demonstrates or tests the flaw raises the odds of mass exploitation — and Nuclei templates help find vulnerable assets in your environment.
- MS12-027 MSCOMCTL ActiveX Buffer Overflow average Apr 10, 2012
- Microsoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit) verified Apr 25, 2012
Warning: public PoCs are sometimes disguised malware. Use them only for authorized testing in an isolated environment. This portal does not host exploit code — it only points to the sources.
Threat actors exploiting this CVE MITRE ATT&CK
According to MITRE ATT&CK.
admin@338 G0018Aoqin Dragon G1007APT12 G0005APT41 G0096BITTER G1002BlackTech G0098Inception G0100Transparent Tribe G0134Tropic Trooper G0081EPSS over time FIRST
Oct 13, 2026 → Oct 15, 2026 · 3 reading(s) · max 99.98%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Prioritize edge telemetry for the network-reachable component (proxy, WAF, IDS/IPS).
- Look for parameters with command/query metacharacters and unexpected child processes of the service.
- Hunt retroactively in logs from before Nov 3, 2021 (KEV listing): exploitation may have started earlier.
Timeline
What happened to this CVE, newest first.
- 2026
- Fix documented
- Affected products added · microsoft/office, microsoft/office web components, microsoft/sql server 2000, microsoft/sql server 2005, microsoft/sql s
- Source status changed · Published → Analyzed
- Record published
- CVSS changed · 8.8
- Source status changed · → Published
- SSVC assessment updated
- Added to CISA KEV (detected)
- Record created in this database
- 2021
- Added to CISA KEV catalog
- 2012
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 3× References added · Oct 13, 2026 – Oct 13, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
16 on the record
- docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-027
- www.cisa.gov/known-exploited-vulnerabilities-catalog
- opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierc
- github.com/advisories/GHSA-xc3w-wqx5-qrf9
- www.us-cert.gov/cas/techalerts/TA12-101A.html
- www.securityfocus.com/bid/52911
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A15462
- www.securitytracker.com/id
- www.securitytracker.com/id
- www.securitytracker.com/id
- www.securitytracker.com/id
- www.securitytracker.com/id
- www.securitytracker.com/id
- exchange.xforce.ibmcloud.com/vulnerabilities/74372
- nvd.nist.gov/vuln/detail/CVE-2012-0158
- opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierc
Elsewhere on this site
Related CVEs (same products)
- High CVE-2026-70105 Microsoft Word Information Disclosure Vulnerability Aug 20, 2026
- Medium CVE-2026-55054 Microsoft Excel Information Disclosure Vulnerability Jul 14, 2026
- High CVE-2026-47293 Microsoft Office Click-To-Run Elevation of Privilege Vulnerability Jun 9, 2026
- Medium CVE-2026-42832 Microsoft Office Spoofing Vulnerability May 12, 2026
- High CVE-2026-42831 Microsoft Office Remote Code Execution Vulnerability May 12, 2026
- Medium CVE-2026-40421 Microsoft Word Information Disclosure Vulnerability May 12, 2026
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2012-0158 is "Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability", rated High. It affects Biztalk Server (Microsoft); versions are in the scope table. It is in CISA KEV: there is evidence of real-world exploitation. CVSS 8.8 describes technical severity. EPSS 99.98% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.