{"answers":{"affected":"It affects 5 products.","exploited":"There is no known exploitation of CVE-2012-0157 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2012-0157 yet. Limit exposure of the affected software until one is available.","what":"CVE-2012-0157 is a high-severity vulnerability in Microsoft Windows 7, published on 13 Mar 2012. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-0157 and fix it if it is affected.\n\nWhat it is: CVE-2012-0157 is a high-severity vulnerability in Microsoft Windows 7, published on 13 Mar 2012. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2012-0157 in the wild and no public exploit code.\n\nAffected product: Microsoft Windows 7. 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-0157/ (Markdown: https://insights.sbomify.com/CVE-2012-0157/index.md)","id":"CVE-2012-0157","markdown":"https://insights.sbomify.com/CVE-2012-0157/index.md","name":"CVE-2012-0157","record":{"aliases":["GHSA-55fr-8qcg-gvp7"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Windows kernel driver","requires_auth":"none","summary":"Local attackers can gain elevated privileges by exploiting improper window messaging handling in the Windows kernel driver via a crafted application.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"windows_7","vendor":"microsoft"},{"product":"windows_server_2003","vendor":"microsoft"},{"product":"windows_server_2008","vendor":"microsoft"},{"product":"windows_vista","vendor":"microsoft"},{"product":"windows_xp","vendor":"microsoft"}],"cvss":{"score":8.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"win32k.sys in the kernel-mode drivers in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2, R2, and R2 SP1, and Windows 7 Gold and SP1 does not properly handle window messaging, which allows local users to gain privileges via a crafted application that calls the PostMessage function, aka \"PostMessage Function Vulnerability.\"","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Privilege escalation in n/a","id":"CVE-2012-0157","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"microsoft:windows_7","products":["microsoft:windows_7","microsoft:windows_server_2003","microsoft:windows_server_2008","microsoft:windows_vista","microsoft:windows_xp"],"type":"privilege_escalation","year":"2012"},"n_packages":0,"n_references":4,"next":{"headline":"Microsoft MSCOMCTL.OCX Remote Code Execution","id":"CVE-2012-0158"},"packages":[],"prev":{"headline":"Denial of service in n/a","id":"CVE-2012-0156"},"products":["n/a"],"published":"2012-03-13","related":[{"cvss_score":9.8,"headline":"Microsoft HTTP.sys Remote Code Execution","id":"CVE-2015-1635","kev_date_added":"2022-02-10","published":"2015-04-14"},{"cvss_score":8.8,"headline":"Microsoft Win32k Privilege Escalation","id":"CVE-2015-2360","kev_date_added":"2022-05-25","published":"2015-06-10"},{"cvss_score":8.8,"headline":"Microsoft Kerberos Key Distribution Center (KDC) Privilege Escalation","id":"CVE-2014-6324","kev_date_added":"2022-03-25","published":"2014-11-18"},{"cvss_score":8.8,"headline":"Microsoft Windows Object Linking \u0026 Embedding (OLE) Automation Array Remote Code Execution","id":"CVE-2014-6332","kev_date_added":"2022-03-25","published":"2014-11-11"},{"cvss_score":8.8,"headline":"Microsoft Windows Remote Code Execution","id":"CVE-2014-4148","kev_date_added":"2022-05-25","published":"2014-10-15"},{"cvss_score":8.8,"headline":"Microsoft Windows Group Policy Preferences Password Privilege Escalation","id":"CVE-2014-1812","kev_date_added":"2021-11-03","published":"2014-05-14"},{"cvss_score":8.8,"headline":"Microsoft Windows Out-of-Bounds Write","id":"CVE-2013-3918","kev_date_added":"2025-10-06","published":"2013-11-12"}],"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-17","vendors":["n/a"]},"summary":"Local attackers can gain elevated privileges by exploiting improper window messaging handling in the Windows kernel driver via a crafted application.","url":"https://insights.sbomify.com/CVE-2012-0157/"}