Skip to content
Server Security Center
KEVcritical9.8 Used in ransomware campaigns

CVE-2012-4681: Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution

Oracle Java SE · listed in the CISA catalog of actively exploited vulnerabilities since 2022-03-03.

CVSS v3.1 (CISA ADP)
9.8
critical
EPSS (exploit probability, 30 days)
99%
among the highest 0.1% of all CVEs
Added to CISA KEV
2022-03-03
US federal due date 2022-03-24
Automatable (CISA SSVC)
yes
technical impact: total

CVE-2012-4681 explained

CVE-2012-4681 is a set of flaws in the Java Runtime Environment (JRE) component of Oracle Java SE that lets a crafted applet bypass SecurityManager restrictions and run arbitrary code. The description states it was exploited in the wild in August 2012. CISA lists it as known exploited, including in ransomware campaigns.

Impact

A remote attacker can execute arbitrary code by delivering a crafted applet that escapes the Java sandbox. The CVSS vector rates this as network-based, low complexity, and requiring no privileges or user interaction. Confidentiality, integrity and availability impact are all high. CISA rates it automatable with total technical impact, meaning attackers can exploit it at scale and gain full control of the affected component. Known ransomware use is reported.

Who is affected

The description names Oracle Java SE 7 Update 6 and earlier as affected. The CVE record itself lists no structured affected versions for Oracle Java SE, and it names no fixed version. Consult Oracle's vendor advisory to identify the update that resolves this issue.

Written with AI from the data on this page and checked against it automatically.

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.

CISA required action: Apply updates per vendor instructions.

CISA notes

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: oracle.com/technetwork/topics/security/alert-cve-2012-468…
  • CISA's deadline for US federal agencies: 2022-03-24 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Apply updates per Oracle's vendor instructions, as CISA's required action states.
  2. Inventory all systems running Oracle Java SE 7 Update 6 or earlier and update or remove them.
  3. Disable Java in web browsers where applets are not needed.
  4. Uninstall Java from systems that do not require it.
  5. Check systems that ran vulnerable Java versions for signs of compromise, including ransomware activity.

The CVE record names no fixed version. Follow Oracle's vendor advisory to find the corrected Java SE update and apply it, as CISA's required action directs. Until updated, disable Java in browsers, remove Java where it is not needed, and block untrusted applets.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-284 Improper Access Control

Questions about CVE-2012-4681

Is CVE-2012-4681 being actively exploited?
Yes. The description notes exploitation in the wild in August 2012, and CISA added it to its Known Exploited Vulnerabilities catalog on 2022-03-03 with known ransomware use.
Which Java versions are affected?
The description names Oracle Java SE 7 Update 6 and earlier. The CVE record lists no structured version data, so check Oracle's advisory for details.
What was the federal deadline for remediation?
CISA set a US federal due date of 2022-03-24, with the required action to apply updates per vendor instructions.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.