{"answers":{"affected":"It affects 10 products.","exploited":"Yes. Attackers have exploited CVE-2012-0158 in the wild since at least 3 Nov 2021, including in ransomware campaigns.","fix":"No fix has been published for CVE-2012-0158 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.","what":"CVE-2012-0158 is a high-severity code injection vulnerability in Microsoft Office, published on 10 Apr 2012. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2012-0158 and fix it if it is affected.\n\nWhat it is: CVE-2012-0158 is a high-severity code injection vulnerability in Microsoft Office, published on 10 Apr 2012. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: Yes. Attackers have exploited CVE-2012-0158 in the wild since at least 3 Nov 2021, including in ransomware campaigns.\n\nAffected product: Microsoft Office. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2012-0158/ (Markdown: https://insights.sbomify.com/CVE-2012-0158/index.md)","id":"CVE-2012-0158","markdown":"https://insights.sbomify.com/CVE-2012-0158/index.md","name":"CVE-2012-0158","record":{"aliases":["GHSA-xc3w-wqx5-qrf9"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Microsoft Office","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via crafted documents or websites exploiting MSCOMCTL.OCX ActiveX controls in Microsoft Office and related products.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"biztalk_server","vendor":"microsoft"},{"product":"commerce_server","vendor":"microsoft"},{"product":"commerce_server_2009","vendor":"microsoft"},{"product":"office","vendor":"microsoft"},{"product":"office_web_components","vendor":"microsoft"},{"product":"sql_server_2000","vendor":"microsoft"},{"product":"sql_server_2005","vendor":"microsoft"},{"product":"sql_server_2008","vendor":"microsoft"},{"product":"visual_basic","vendor":"microsoft"},{"product":"visual_foxpro","vendor":"microsoft"}],"cvss":{"score":8.8,"severity":"high","source":"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"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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.\"","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2012-04-10","github_poc":2,"max_poc_stars":1,"metasploit":1,"nuclei":0,"refs":[{"date":"2022-08-15T06:59:06Z","kind":"github_poc","ref":"https://github.com/Sunqiz/CVE-2012-0158-reproduction","stars":1,"title":"CVE-2012-0158复现"},{"date":"2012-04-10","kind":"metasploit","ref":"exploit/windows/fileformat/ms12_027_mscomctl_bof","stars":null,"title":"MS12-027 MSCOMCTL ActiveX Buffer Overflow"},{"date":"2012-04-25","kind":"exploitdb","ref":"18780","stars":null,"title":"Microsoft Windows - MSCOMCTL ActiveX Buffer Overflow (MS12-027) (Metasploit)"},{"date":"2022-01-03T21:13:13Z","kind":"github_poc","ref":"https://github.com/RobertoLeonFR-ES/Exploit-Win32.CVE-2012-0158.F.doc","stars":0,"title":"the name of virus is the detection of microsoft defender, is the tipic antivirus"}],"tier":"exploited"},"has_fix":null,"headline":"Microsoft MSCOMCTL.OCX Remote Code Execution","id":"CVE-2012-0158","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Known","product":"MSCOMCTL.OCX","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Microsoft","vulnerabilityName":"Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"microsoft:office","products":["microsoft:office"],"type":"code_injection","year":"2012"},"n_packages":0,"n_references":12,"next":{"headline":"Memory corruption in n/a","id":"CVE-2012-0159"},"packages":[],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2012-0157"},"products":["n/a"],"published":"2012-04-10","related":[{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2009-2496","kev_date_added":null,"published":"2009-08-12"},{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2007-1201","kev_date_added":null,"published":"2008-03-11"},{"cvss_score":9.3,"headline":"Code injection in n/a","id":"CVE-2007-0940","kev_date_added":null,"published":"2007-05-08"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2003-0117","kev_date_added":null,"published":"2003-05-02"},{"cvss_score":7.5,"headline":"SQL injection in n/a","id":"CVE-2003-0118","kev_date_added":null,"published":"2003-05-02"},{"cvss_score":4.3,"headline":"Cross-site scripting in n/a","id":"CVE-2015-2475","kev_date_added":null,"published":"2015-08-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-22","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via crafted documents or websites exploiting MSCOMCTL.OCX ActiveX controls in Microsoft Office and related products.","url":"https://insights.sbomify.com/CVE-2012-0158/"}