CVE-2012-4681: Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution Vulnerability
CVE-2012-4681 is a critical-severity flaw (CVSS 9.8) affecting jdk, jre, enterprise linux desktop, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Used in ransomware campaigns
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 98.5% (top 1%) |
| CISA exploited list | Yes, fix due 2022-03-24, used in ransomware |
| Weakness | CWE-284 |
| Published | 2012-08-28 |
| Last modified | 2026-08-06 |
Last updated 2026-08-06 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: benjholla/CVE-2012-4681-Armoring (1 stars)
- GitHub PoC: ZH3FENG/PoCs-CVE_2012_4681 (0 stars)
- Write-up: community.rapid7.com/community/metasploit/blog/2012/08/27/lets-start-the-week-with-a-new-j
- GitHub PoC: Live-Hack-CVE/CVE-2012-4681
- Exploit-DB: Java 7 Applet - Remote Code Execution (Metasploit)
- Metasploit: Java 7 Applet Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2012-4681?
jdk: downgrade or apply the listed mitigation; jre: downgrade or apply the listed mitigation; enterprise linux desktop: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2012-4681 being exploited?
Yes. CVE-2012-4681 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2012-4681 affect?
CVE-2012-4681 affects jdk, jre, enterprise linux desktop. Severity is critical (CVSS 9.8). 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
How urgent is CVE-2012-4681?
Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Related CVEs
- CVE-2026-34282 HIGH 7.5 DOWNGRADE DOWNGRADE Vulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition product of Orac
- CVE-2026-22013 MEDIUM 5.3 DOWNGRADE DOWNGRADE Vulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition product of Orac
- CVE-2026-22018 LOW 3.7 DOWNGRADE DOWNGRADE Vulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition product of Orac
- CVE-2026-22003 MEDIUM 6.0 DOWNGRADE DOWNGRADE Vulnerability in the Oracle Java SE, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: H
- CVE-2026-22008 LOW 3.7 DOWNGRADE DOWNGRADE Vulnerability in Oracle Java SE (component: Libraries)