Home / Microsoft / Office / CVE-2012-0158
CVE-2012-0158: is it exploited, and which versions of Microsoft Office are affected and fixed?
CVE-2012-0158 is a code injection (remote code execution) vulnerability in Microsoft Office, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on November 3, 2021, with a federal due date of May 3, 2022. Affected: office 2003, office 2007, office 2010 and 13 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (8.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:49 UTC.
What is CVE-2012-0158?
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."
From the CVE record by microsoft, last updated October 22, 2025, 00:05 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| microsoft | office | 2003 | application |
| microsoft | office | 2007 | application |
| microsoft | office | 2010 | application |
| microsoft | office web components | 2003 | application |
| microsoft | sql server 2000 | all versions | application |
| microsoft | sql server 2005 | all versions | application |
| microsoft | sql server 2008 | all versions | application |
| microsoft | sql server 2008 | r2 | application |
| microsoft | biztalk server | 2002 | application |
| microsoft | commerce server | 2002 | application |
| microsoft | commerce server | 2007 | application |
| microsoft | commerce server 2009 | all versions | application |
| microsoft | commerce server 2009 | r2 | application |
| microsoft | visual basic | 6.0 | application |
| microsoft | visual foxpro | 8.0 | application |
| microsoft | visual foxpro | 9.0 | application |
NVD analysis (status Analyzed), last modified June 16, 2026, 23:36 UTC.
How severe is CVE-2012-0158?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | CISA-ADP |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
| High 9.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-0158 exploited in the wild?
- CISA KEV
- Listed as Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability, added November 3, 2021; federal agencies must act by May 3, 2022
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Known
- CISA's summary
- Microsoft MSCOMCTL.OCX contains an unspecified vulnerability that allows for remote code execution, allowing an attacker to take complete control of an affected system under the context of the current user.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, February 10, 2025)
- EPSS
- 100.0% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- 1026902 vdb-entry, x_refsource_SECTRACK
- 1026899 vdb-entry, x_refsource_SECTRACK
- TA12-101A third-party-advisory, x_refsource_CERT
- 1026904 vdb-entry, x_refsource_SECTRACK
- 1026903 vdb-entry, x_refsource_SECTRACK
- 1026905 vdb-entry, x_refsource_SECTRACK
- http://opensources.info/comment-on-the-curious-case-of-a-cve-2012-0158-exploit-by-chris-pierce/ x_refsource_MISC
- MS12-027 vendor-advisory, x_refsource_MS
- oval:org.mitre.oval:def:15462 vdb-entry, signature, x_refsource_OVAL
- 52911 vdb-entry, x_refsource_BID
- ms-activex-control-code-execution(74372) vdb-entry, x_refsource_XF
- 1026900 vdb-entry, x_refsource_SECTRACK
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0158 government-resource
When was it published, and where is the official record?
- Reserved
- December 13, 2011
- Published
- April 10, 2012, 21:00 UTC
- CVE record updated
- October 22, 2025, 00:05 UTC by microsoft
- NVD
- Analyzed, last modified June 16, 2026, 23:36 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:49 UTC; KEV December 3, 2026, 06:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Office?
- Jan 8, 2019CVE-2019-0541 Microsoft Office: command injection exploited
- Oct 14, 2016CVE-2016-7193 Microsoft Office: memory corruption (buffer overflow) exploited
- Sep 9, 2015CVE-2015-2545 Microsoft Office: n/a exploited
- Aug 15, 2015CVE-2015-1642 Microsoft Office: out-of-bounds write (memory corruption) exploited
- Jul 14, 2015CVE-2015-2424 Microsoft Excel Viewer: out-of-bounds write (memory corruption) exploited
- Jun 10, 2015CVE-2015-1770 Microsoft Office: uninitialized pointer access exploited
- Apr 14, 2015CVE-2015-1641 Microsoft Office: out-of-bounds write (memory corruption) exploited
- Mar 24, 2014CVE-2014-1761 Microsoft Office: out-of-bounds write (memory corruption) exploited
Questions about CVE-2012-0158
Is CVE-2012-0158 exploited in the wild?
Yes. CISA added CVE-2012-0158 to its Known Exploited Vulnerabilities catalog on November 3, 2021 and set federal agencies a due date of May 3, 2022. CISA lists it as used in ransomware campaigns. FIRST's EPSS gives it a 100.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Microsoft Office are affected by CVE-2012-0158?
office 2003, office 2007, office 2010, office web components 2003, sql server 2000 all versions, sql server 2005 all versions and 10 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2012-0158?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2012-0158?
High (8.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2012-0158?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.