Cyber Resilience

CVE-2012-0158

RCE in Microsoft Office 2003 … 2010

CISA KEVActive ExploitationEUVD ExploitedRCE
Published
10 April 2012
Modified
22 April 2026
KEV Added
03 November 2021
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.99 100.0th percentile
Risk Priority 90 floored blend · peak EPSS

Summary

CVE-2012-0158 is a high-severity Code Injection (CWE-94) vulnerability in Microsoft Office. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Command and Scripting Interpreter (T1059); ranked in the top 0.0% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

The vulnerability is a remote code execution flaw, identified as CWE-94, in the ListView, ListView2, TreeView, and TreeView2 ActiveX controls within MSCOMCTL.OCX from the Microsoft Common Controls library. It affects a wide range of products including Microsoft Office 2003 SP3, 2007 SP2/SP3, and 2010 Gold/SP1 along with Office 2003 Web Components SP3; SQL Server 2000 SP4, 2005 SP4, and 2008 SP2/SP3/R2; BizTalk Server 2002 SP1; Commerce Server 2002 SP4, 2007 SP2, and 2009 Gold/R2; Visual FoxPro 8.0 SP1 and 9.0 SP2; and the Visual Basic 6.0 Runtime. The flaw stems from improper handling of crafted input that corrupts system state.

Remote attackers can exploit the issue by delivering a malicious web site, Office document, or RTF file to a target system. Successful exploitation grants the ability to execute arbitrary code with the privileges of the current user, enabling full compromise of affected applications and underlying data.

The issue was exploited in the wild as of April 2012. Public references such as SecurityFocus BID 52911 and multiple SecurityTracker entries (1026899, 1026900, 1026902) along with related analyses document the vulnerability and its observed use in targeted attacks.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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

CWE(s)
KEV Date Added
03 November 2021

Related Threats

MITRE ATT&CK Enterprise Techniques

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1059.001 PowerShell Execution
Adversaries may abuse PowerShell commands and scripts for execution.
T1059.002 AppleScript Execution
Adversaries may abuse AppleScript for execution.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1059.005 Visual Basic Execution
Adversaries may abuse Visual Basic (VB) for execution.
T1059.006 Python Execution
Adversaries may abuse Python commands and scripts for execution.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2009-0557Same product: Microsoft Officeboth on KEV
CVE-2009-0238Same product: Microsoft Officeboth on KEV
CVE-2013-3906Same product: Microsoft Officeboth on KEV
CVE-2009-0556Same vendor: Microsoftboth on KEV
CVE-2015-1635Same vendor: Microsoftboth on KEV
CVE-2014-4148Same vendor: Microsoftboth on KEV
CVE-2025-49704Same vendor: Microsoftboth on KEV
CVE-2017-8759Same vendor: Microsoftboth on KEV
CVE-2023-24955Same vendor: Microsoftboth on KEV
CVE-2024-21351Same vendor: Microsoftboth on KEV

Affected Assets

microsoft
office
2003, 2007, 2010
microsoft
office web components
2003
microsoft
sql server 2000
all versions
microsoft
sql server 2005
all versions
microsoft
sql server 2008
all versions, r2
microsoft
biztalk server
2002
microsoft
commerce server
2002, 2007
microsoft
commerce server 2009
all versions, r2
microsoft
visual basic
6.0
microsoft
visual foxpro
8.0, 9.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.3.1

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-94

Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.

addresses: CWE-94

Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.

addresses: CWE-94

Validates inputs used in dynamic code generation to block injected directives.

addresses: CWE-94

Directly prevents execution of attacker-supplied code written into data memory regions.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

PR.PS-06's SDLC practices directly target injection flaws via secure coding and testing (mostly), yet as a single broad outcome it leaves many code-generation specifics unaddressed (partial).

PR.DS-10 none match
prevents

PR.DS-10 protects runtime data confidentiality/integrity but has no bearing on neutralizing externally influenced input during code generation, so neither direction shows any preventive effect.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Banning unapproved code samples and unauthenticated web services, combined with secure-coding standards and SAST, prevents the dynamic generation or inclusion of attacker-supplied code.

none

Controls that restrict unauthorized or malicious code from being introduced via external networks or removable media limit opportunities for an attacker to inject and execute arbitrary code.

References