CVE-2012-4681: Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution Vulnerability
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.
Other sources
The Java Runtime Environment (JRE) component in Oracle Java SE allow for remote code execution.
— CISA
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Oracle Java SE 7 JREto a version that resolves this vulnerability.Fixed in Oracle Java SE 7 Update 6 and earlier - Compensating control
For Java applets/applet-derived content, block or restrict remote applets so remote attackers cannot use a crafted applet to bypass SecurityManager restrictions and execute arbitrary code.
Event History
Frequently Asked Questions
What is the severity of CVE-2012-4681?
CVE-2012-4681 has a critical severity rating due to its potential to allow remote execution of arbitrary code.
How do I fix CVE-2012-4681?
To fix CVE-2012-4681, update your Java Runtime Environment to the latest version provided by Oracle.
Which Oracle products are affected by CVE-2012-4681?
CVE-2012-4681 affects Oracle Java SE 7 Update 6 and earlier, as well as various versions of Oracle JDK 6 and JRE 6 and 7.
Can CVE-2012-4681 be exploited remotely?
Yes, CVE-2012-4681 allows remote attackers to exploit the vulnerability through a malicious crafted applet.
What type of vulnerability is CVE-2012-4681?
CVE-2012-4681 is classified as a remote code execution vulnerability in the Java Runtime Environment.