CVE-2012-0158
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe (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."
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceVulnerability in MSCOMCTL.OCX ActiveX controls (ListView, ListView2, TreeView, TreeView2) allows remote attackers to execute arbitrary code via malicious web sites, Office documents, or RTF files that trigger system state corruption. Affects multiple Microsoft products including Office 2003/2007/2010, SQL Server, BizTalk Server, and Commerce Server.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 2003= 2007= 2010= 2003all versionsall versionsall versions= r2= 2002= 2002= 2007all versions= r2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate MSCOMCTL.OCX on the systemSearch for the file MSCOMCTL.OCX in system directories. Typical paths include C:\Windows\System32\ and C:\Windows\SysWOW64\ on 64-bit systems. Use command: dir /s C:\MSCOMCTL.OCX or search via Windows Explorer.Affected if The file exists and its version corresponds to vulnerable releases of the ActiveX control.
-
Check installed Microsoft Office versionOpen any Office application (Word, Excel, PowerPoint), go to File > Account > About [AppName], or run winver.exe. Check if version is 2003, 2007, or 2010.Affected if Office 2003, 2007, or 2010 is installed and MSCOMCTL.OCX with vulnerable code is present.
-
Check Microsoft Office Web Components versionLook for msowc.dll or owc10.dll/o wc11.dll in Office installation directories or System32. Right-click > Properties > Details to view version.Affected if Office Web Components 2003 is installed.
-
Check SQL Server installationsOpen SQL Server Configuration Manager or SQL Server Management Studio. Look for instances of SQL Server 2000, 2005, 2008, or 2008 R2. Run: SELECT @@VERSION in SSMS for each instance.Affected if Any version of SQL Server 2000, 2005, 2008, or 2008 R2 is installed with the vulnerable ActiveX control.
-
Check BizTalk Server and Commerce Server installationsCheck installed programs in Control Panel > Programs and Features, or look for BizTalk Server or Commerce Server in Start menu. Verify versions 2002 or 2007/2009 as applicable.Affected if BizTalk Server 2002 or Commerce Server 2002, 2007, or 2009 (including R2) is installed.
-
Verify ActiveX control execution environmentIn Internet Explorer, go to Tools > Internet Options > Security > Custom Level. Check 'Enable' or 'Prompt' settings under ActiveX controls and plug-ins. Also check Office Trust Center settings for ActiveX preferences.Affected if ActiveX controls are enabled in Internet Explorer or Office settings without restrictions, allowing the vulnerable MSCOMCTL.OCX controls to execute.
A system is affected if it has any of the listed product versions installed AND the MSCOMCTL.OCX ActiveX control is present and accessible, particularly if ActiveX execution is not restricted.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedApply Microsoft security patches for affected products; alternatively, disable ActiveX controls in Internet Explorer or deploy exploit mitigation tools such as Windows Defender Exploit Guard (EMET).
Apply Microsoft Security Bulletin MS12-027 and subsequent security updates
- Apply Microsoft Security Bulletin MS12-027, which addresses the MSCOMCTL.OCX RCE vulnerability
- For Office products (2003, 2007, 2010), install the relevant security update from MS12-027
- For SQL Server affected versions, apply the corresponding MS12-027 update
- For BizTalk Server 2002 and Commerce Server versions, apply MS12-027 or later cumulative security updates
- Verify the MSCOMCTL.OCX version after patching to confirm the vulnerability is addressed
- For systems that cannot be patched immediately, consider disabling ActiveX controls in Internet Explorer or using the Enhanced Mitigation Experience Toolkit (EMET)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2012-0158 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- docs.microsoft.com
- docs.microsoft.com
- www.securityfocus.com
- www.securitytracker.com
- www.securitytracker.com
- www.securitytracker.com
- www.securitytracker.com
- www.securitytracker.com
- www.securitytracker.com
- www.us-cert.gov
- exchange.xforce.ibmcloud.com
- opensources.info
- oval.cisecurity.org
- www.cisa.gov
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2012-0158 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data