# CVE-2012-4681

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.

- Page: https://www.vulneraibility.com/cve/CVE-2012-4681
- CVSS: 9.8
- Known exploited: yes, in CISA KEV since 2022-03-03; CISA due date 2022-03-24; known ransomware use
- EPSS: 98.54% (percentile 99.9)
- Public exploit code: 1 on Exploit-DB · 1 Metasploit module · 2 GitHub proofs of concept (first 2012-08-27)
- CISA SSVC: exploitation active, automatable yes, technical impact total (assessed 2022-03-02)
- Weakness: CWE-284
- Published: 2012-08-28

## Affected

- oracle:jdk
- oracle:jre
- redhat:enterprise_linux_desktop
- redhat:enterprise_linux_eus
- redhat:enterprise_linux_server
- redhat:enterprise_linux_workstation

## References

- [other] http://blog.fireeye.com/research/2012/08/zero-day-season-is-not-over-yet.html
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2012-10/msg00016.html
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2012-09/msg00032.html
- [advisory] http://www.us-cert.gov/cas/techalerts/TA12-240A.html
- [other] http://labs.alienvault.com/labs/index.php/2012/new-java-0day-exploited-in-the-wild/
- [advisory] http://marc.info/?l=bugtraq&m=135109152819176&w=2
- [other] https://community.rapid7.com/community/metasploit/blog/2012/08/27/lets-start-the-week-with-a-new-java-0day
- [other] http://www.deependresearch.org/2012/08/java-7-vulnerability-analysis.html
- [other] http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html
- [advisory] http://rhn.redhat.com/errata/RHSA-2012-1225.html
- [other] http://immunityproducts.blogspot.com/2012/08/java-0day-analysis-cve-2012-4681.html
- [advisory] http://secunia.com/advisories/51044
- [other] http://www.securityfocus.com/bid/55213
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-4681

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
