CVE-2012-4681 Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution
Remote attackers can execute arbitrary code by bypassing Java SecurityManager restrictions via crafted applets, affecting Java Runtime Environment users.
- Exploited in the wild
- Since 3 Mar 2022
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-4681?
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.
Official 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.
Weakness: CWE-284
Which versions are affected by CVE-2012-4681?
It affects 6 products.
Products include Oracle Jdk, Oracle Jre, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Eus, Redhat Enterprise Linux Server, Redhat Enterprise Linux Workstation.
How do I fix CVE-2012-4681?
Upgrade to a fixed version. US federal agencies must fix it by 24 Mar 2022.
Is CVE-2012-4681 being exploited?
Yes. Attackers have exploited CVE-2012-4681 in the wild since at least 3 Mar 2022, including in ransomware campaigns.
Public exploit code: 1 Metasploit module, 1 Exploit-DB entry and 2 proofs of concept on GitHub.
Other vulnerabilities in Oracle Jdk
Sources
Also known as CVE-2012-3539, GHSA-fw99-8m5g-58p8.