{"answers":{"affected":"It affects 6 products.","exploited":"Yes. Attackers have exploited CVE-2012-4681 in the wild since at least 3 Mar 2022, including in ransomware campaigns.","fix":"Upgrade to a fixed version. US federal agencies must fix it by 24 Mar 2022.","what":"CVE-2012-4681 is a critical vulnerability in Oracle Jdk, published on 28 Aug 2012. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2012-4681 and fix it if it is affected.\n\nWhat it is: CVE-2012-4681 is a critical vulnerability in Oracle Jdk, published on 28 Aug 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2012-4681 in the wild since at least 3 Mar 2022, including in ransomware campaigns.\n\nAffected product: Oracle Jdk. 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-4681/ (Markdown: https://insights.sbomify.com/CVE-2012-4681/index.md)","id":"CVE-2012-4681","markdown":"https://insights.sbomify.com/CVE-2012-4681/index.md","name":"CVE-2012-4681","record":{"aliases":["CVE-2012-3539","GHSA-fw99-8m5g-58p8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java Runtime Environment","requires_auth":"none","summary":"Remote attackers can execute arbitrary code by bypassing Java SecurityManager restrictions via crafted applets, affecting Java Runtime Environment users.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"jdk","vendor":"oracle"},{"product":"jre","vendor":"oracle"},{"product":"enterprise_linux_desktop","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_workstation","vendor":"redhat"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"description":"Multiple vulnerabilities in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 6 and earlier allow remote attackers to execute arbitrary code via a crafted applet that bypasses SecurityManager restrictions by (1) using com.sun.beans.finder.ClassFinder.findClass and leveraging an exception with the forName method to access restricted classes from arbitrary packages such as sun.awt.SunToolkit, then (2) using \"reflection with a trusted immediate caller\" to leverage the getField method to access and modify private fields, as exploited in the wild in August 2012 using Gondzz.class and Gondvv.class.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2012-08-26","github_poc":2,"max_poc_stars":1,"metasploit":1,"nuclei":0,"refs":[{"date":"2014-09-26T02:33:24Z","kind":"github_poc","ref":"https://github.com/benjholla/CVE-2012-4681-Armoring","stars":1,"title":"An A/V evasion armoring experiment for CVE-2012-4681"},{"date":"2012-08-26","kind":"metasploit","ref":"exploit/multi/browser/java_jre17_exec","stars":null,"title":"Java 7 Applet Remote Code Execution"},{"date":"2012-08-27","kind":"exploitdb","ref":"20865","stars":null,"title":"Java 7 Applet - Remote Code Execution (Metasploit)"},{"date":"2018-01-05T08:10:34Z","kind":"github_poc","ref":"https://github.com/ZH3FENG/PoCs-CVE_2012_4681","stars":0,"title":"A Simple PoC for CVE-2012-4681"}],"tier":"exploited"},"has_fix":true,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2012-4681","indexable":true,"kev":{"dateAdded":"2022-03-03","dueDate":"2022-03-24","knownRansomwareCampaignUse":"Known","product":"Java SE","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Oracle","vulnerabilityName":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"oracle:jdk","products":["oracle:jdk","oracle:jre","redhat:enterprise_linux_desktop","redhat:enterprise_linux_eus","redhat:enterprise_linux_server","redhat:enterprise_linux_workstation"],"type":"security_feature_bypass","year":"2012"},"n_packages":0,"n_references":14,"next":{"headline":"Denial of service in n/a","id":"CVE-2012-4682"},"packages":[],"prev":{"headline":"Path traversal in n/a","id":"CVE-2012-4680"},"products":["n/a"],"published":"2012-08-28","related":[{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2012-1723","kev_date_added":"2022-03-03","published":"2012-06-16"},{"cvss_score":10,"headline":"Deserialization in n/a","id":"CVE-2015-4805","kev_date_added":null,"published":"2015-10-21"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2015-4835","kev_date_added":null,"published":"2015-10-21"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2015-4843","kev_date_added":null,"published":"2015-10-21"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2015-4844","kev_date_added":null,"published":"2015-10-21"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2015-4860","kev_date_added":null,"published":"2015-10-21"}],"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":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-06","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code by bypassing Java SecurityManager restrictions via crafted applets, affecting Java Runtime Environment users.","url":"https://insights.sbomify.com/CVE-2012-4681/"}