Security Resilience

CVE-2012-0158

RCE in Microsoft Office 2003 … 2010

CISA KEVActive ExploitationEUVD ExploitedRansomware-linkedRCE
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

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

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 Junk Data (T1001.001); 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

Threat-Actor AttributionAI

Microsoft Corp. (Salesforce / Slack engineer recruitment claims)
Top 10 Routinely Exploited Vulnerabilities | CISA
AnonOps
Top 10 Routinely Exploited Vulnerabilities | CISA
APT1 (G0006)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
Deep Panda (G0009)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
APT3 (G0022)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
Winnti Group (G0044)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
menuPass (G0045)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
Leviathan (G0065)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
APT19 (G0073)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA
APT41 (G0096)
Potential for China Cyber Response to Heightened U.S.–China Tensions | CISA

MITRE ATT&CK Enterprise Techniques

T1001.001 Junk Data Command And Control
Adversaries may add junk data to protocols used for command and control to make detection more difficult.
T1001.003 Protocol or Service Impersonation Command And Control
Adversaries may impersonate legitimate protocols or web service traffic to disguise command and control activity and thwart analysis efforts.
T1003.006 DCSync Credential Access
Adversaries may attempt to access credentials and other sensitive information by abusing a Windows Domain Controller's application programming interface (API)(Citation: Microsoft DRSR Dec 2017) (Citation: Microsoft GetNCCChanges) (Citati…
T1003.007 Proc Filesystem Credential Access
Adversaries may gather credentials from the proc filesystem or `/proc`.
T1003.008 /etc/passwd and /etc/shadow Credential Access
Adversaries may attempt to dump the contents of <code>/etc/passwd</code> and <code>/etc/shadow</code> to enable offline password cracking.
T1007 System Service Discovery Discovery
Adversaries may try to gather information about registered local system services.
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-2015-1635Same vendor: Microsoftboth on KEV
CVE-2009-0556Same vendor: Microsoftboth on KEV
CVE-2025-49704Same vendor: Microsoftboth on KEV
CVE-2014-4148Same vendor: Microsoftboth on KEV
CVE-2026-65660Same vendor: Microsoftboth on KEV
CVE-2017-8759Same vendor: Microsoftboth on KEV
CVE-2023-24955Same 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
blocks

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
blocks

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.

removes
removes
removes
removes
removes

References