Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2012-0158: Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability

96
Patch now
HIGH 8.8EXPLOITEDWATCHLISTDOWNGRADEDOWNGRADEMITIGATE

CVE-2012-0158 is a high-severity flaw (CVSS 8.8) affecting office, office web components, sql server 2000, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 attacker

Why this priority

  • High severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Used in ransomware campaigns
  • Public exploit reference
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score8.8 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance100.0% (top 1%)
CISA exploited listYes, fix due 2022-05-03, used in ransomware
WeaknessCWE-94
Published2012-04-10
Last modified2026-06-16
Publisher (CNA): Microsoft Corporation · Vendor: microsoft

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

microsoft office DOWNGRADE
Affected: 2003 sp3 · 2007 sp2 · 2007 sp3 · 2010 · 2010 sp1
Fixed in: no fixed release known
Safe to downgrade to: a release before 2003
1. Check installed version
apt-cache policy office || rpm -q office || office --version
2. No fixed release: DOWNGRADE to a release before 2003 (Debian / Ubuntu)
apt-cache madison office sudo apt install office=<VERSION_BEFORE_2003> sudo apt-mark hold office
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list office sudo dnf downgrade office-<VERSION_BEFORE_2003> sudo dnf versionlock add office
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
microsoft office web components DOWNGRADE
Affected: 2003 sp3
Fixed in: no fixed release known
Safe to downgrade to: a release before 2003
1. Check installed version
apt-cache policy office-web-components || rpm -q office-web-components || office-web-components --version
2. No fixed release: DOWNGRADE to a release before 2003 (Debian / Ubuntu)
apt-cache madison office-web-components sudo apt install office-web-components=<VERSION_BEFORE_2003> sudo apt-mark hold office-web-components
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list office-web-components sudo dnf downgrade office-web-components-<VERSION_BEFORE_2003> sudo dnf versionlock add office-web-components
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
microsoft sql server 2000 MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy sql-server-2000 || rpm -q sql-server-2000 || sql-server-2000 --version
No fixed or unaffected release known
Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
microsoft sql server 2005 MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy sql-server-2005 || rpm -q sql-server-2005 || sql-server-2005 --version
No fixed or unaffected release known
Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
microsoft sql server 2008 DOWNGRADE
Affected: all versions · r2 · r2 sp1
Fixed in: no fixed release known
Safe to downgrade to: a release before r2
1. Check installed version
apt-cache policy sql-server-2008 || rpm -q sql-server-2008 || sql-server-2008 --version
2. No fixed release: DOWNGRADE to a release before r2 (Debian / Ubuntu)
apt-cache madison sql-server-2008 sudo apt install sql-server-2008=<VERSION_BEFORE_r2> sudo apt-mark hold sql-server-2008
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list sql-server-2008 sudo dnf downgrade sql-server-2008-<VERSION_BEFORE_r2> sudo dnf versionlock add sql-server-2008
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
microsoft biztalk server DOWNGRADE
Affected: 2002 sp1
Fixed in: no fixed release known
Safe to downgrade to: a release before 2002
1. Check installed version
apt-cache policy biztalk-server || rpm -q biztalk-server || biztalk-server --version
2. No fixed release: DOWNGRADE to a release before 2002 (Debian / Ubuntu)
apt-cache madison biztalk-server sudo apt install biztalk-server=<VERSION_BEFORE_2002> sudo apt-mark hold biztalk-server
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list biztalk-server sudo dnf downgrade biztalk-server-<VERSION_BEFORE_2002> sudo dnf versionlock add biztalk-server
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · dupeguru · FIXED · 4.3.1^20261101git7a2c79f-1.fc46 · FEDORA-2026-fe4523382c · source
sudo dnf upgrade --advisory=FEDORA-2026-fe4523382c
Fedora ELN · openexr · FIXED · 3.4.13-3.eln159 · FEDORA-2026-827a613db5 · source
sudo dnf upgrade --advisory=FEDORA-2026-827a613db5

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2012-0158?

office: downgrade or apply the listed mitigation; office web components: downgrade or apply the listed mitigation; sql server 2000: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2012-0158 being exploited?

Yes. CVE-2012-0158 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2012-0158 affect?

CVE-2012-0158 affects office, office web components, sql server 2000. Severity is high (CVSS 8.8). 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

How urgent is CVE-2012-0158?

Priority 96/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference; On your watchlist

Software pages

Microsoft SQL Server vulnerabilities · Microsoft Office vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.