nday
CVE-2012-0158

Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability

Microsoft / MSCOMCTL.OCX

Added to KEV 3,494 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. Listed by 2 of 4 PoC sources: exploitdb and metasploit.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

code injection
CWE-94, stated by the ADP CISA-ADP, NVD's analysts, and NVD, republishing 134c704f-9b21-4f2e-91b3-4a467353bcc0
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1) from the ADP CISA-ADP
ransomware use
CISA KEV entry: knownRansomwareCampaignUse is Known
Metasploit
Metasploit modules exploit/windows/fileformat/ms12_027_mscomctl_bof
Exploit-DB
Exploit-DB entries 18780
SQL Server
CPE names NVD's analysts give as vulnerable: a:microsoft:sql_server_2000, a:microsoft:sql_server_2005, a:microsoft:sql_server_2008
Microsoft Office
CPE names NVD's analysts give as vulnerable: a:microsoft:office, a:microsoft:office_web_components
database
CPE names NVD's analysts give as vulnerable: a:microsoft:sql_server_2000, a:microsoft:sql_server_2005, a:microsoft:sql_server_2008the product type of SQL Server in nday's product registry
office / document software
CPE names NVD's analysts give as vulnerable: a:microsoft:office, a:microsoft:office_web_componentsthe product type of Microsoft Office in nday's product registry
stage
KEV
disclosed
disclosure → KEV
T+3494d KEV is date-only
cvss
8.8 HIGH v3.1
KEV due date
2022-05-03

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2012-04-10T21:00Z
PATpatch
no record yet
ANAanalysis
no record yet
POCPoC
2012-04-25, date only
metasploit
ITWexploited
≤ 2021-11-03, inferred from KEV
KEVKEV
2021-11-03, date only

Summary

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

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS 3.1 vector from the CVE record, added by the ADP CISA-ADP.

Event log

+DISdisclosed

CVE record published by microsoft. CVSS 8.8, high. CISA's SSVC assessment rates exploitation as active.

src cvelist · nday , bulk import · raw
{
  "id": 18073,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2012-0158",
  "occurred_at": "2012-04-10T21:00:00Z",
  "observed_at": "2026-11-12T15:02:49.796473Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "kev": {
      "reference": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0158",
      "date_added": "2021-11-03"
    },
    "cvss": {
      "source": "adp:CISA-ADP",
      "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 8.8,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2025-02-10T19:33:55.404318Z",
      "automatable": "no",
      "exploitation": "active",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2012-04-10T21:00:00.000Z",
    "assigner_short_name": "microsoft"
  }
}
2012-04-25date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Microsoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit)” (EDB-18780). Verified by Exploit-DB.

src exploitdb 18780 · nday , bulk import · raw
{
  "id": 48042,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/18780",
  "occurred_at": "2012-04-25T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "18780",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/18780",
    "file": "exploits/windows/remote/18780.rb",
    "kind": "exploit",
    "tags": [
      "Metasploit Framework (MSF)"
    ],
    "type": "remote",
    "title": "Microsoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit)",
    "author": "Metasploit",
    "edb_id": 18780,
    "cve_ids": [
      "CVE-2012-0158"
    ],
    "platform": "windows",
    "verified": true,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2012-04-25",
    "date_updated": "2012-04-25",
    "date_published": "2012-04-25"
  }
}
2021-11-03date only, from source
+KEVadded to KEV

CISA added it to the Known Exploited Vulnerabilities catalog, with a remediation deadline of 2022-05-03. Known to be used in ransomware campaigns.

src kev · nday , bulk import · raw
{
  "id": 1664,
  "type": "kev_added",
  "source": "kev",
  "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
  "occurred_at": "2021-11-03T00:00:00Z",
  "observed_at": "2026-11-12T13:53:00.018191Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cwes": [
      "CWE-94"
    ],
    "notes": "https://nvd.nist.gov/vuln/detail/CVE-2012-0158",
    "product": "MSCOMCTL.OCX",
    "due_date": "2022-05-03",
    "precision": "day",
    "date_added": "2021-11-03",
    "vendor_project": "Microsoft",
    "forensic_triage": "No",
    "required_action": "Apply updates per vendor instructions.",
    "vulnerability_name": "Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability",
    "known_ransomware_campaign_use": "Known"
  }
}
≤ 2021-11-03inferred, no direct source
~ITWexploited in the wild

No source says when exploitation began. A KEV listing means it was already happening, so only an upper bound is known. CISA's SSVC assessment rates exploitation as active.

based on kev and CISA's assessment in cvelist

time unknownsource gave no time
+POCpublic PoC

Metasploit has module exploit/windows/fileformat/ms12_027_mscomctl_bof (MS12-027 MSCOMCTL ActiveX Buffer Overflow). The source gives no release time for the module.

src metasploit exploit/windows/fileformat/ms12_027_mscomctl_bof · nday , bulk import · raw
{
  "id": 52282,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/fileformat/ms12_027_mscomctl_bof.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/windows/fileformat/ms12_027_mscomctl_bof",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/fileformat/ms12_027_mscomctl_bof.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/windows/fileformat/ms12_027_mscomctl_bof.rb",
    "rank": 200,
    "check": false,
    "title": "MS12-027 MSCOMCTL ActiveX Buffer Overflow",
    "cve_ids": [
      "CVE-2012-0158"
    ],
    "fullname": "exploit/windows/fileformat/ms12_027_mscomctl_bof",
    "rank_name": "average",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2025-06-23 12:43:46 +0000",
    "vuln_disclosure_date": "2012-04-10"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.