All vulnerabilities

Servers and applications

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…

Actively exploited: CISA added it to its Known Exploited Vulnerabilities catalog on 3 Mar 2022.

Severity
Critical 9.8
Published
28 Aug 2012
Last changed
6 Aug 2026
Added to UpHeron
22 Oct 2026
Exploit chance
99% in the next 30 daysHigher than 99% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper access control (CWE-284)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Sources
NVD

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.

From NVD.

Affected software

SoftwareAffected versions
JavaServers and applications · cpe:a:oracle:jdk
  • Version 1.7.0-update6
  • Version 1.7.0-update5
  • Version 1.7.0-update4
  • Version 1.7.0-update3
All 41 release lines
  • Version 1.6.0
  • Version 1.6.0-update1
  • Version 1.6.0-update2
  • Version 1.6.0-update3
  • Version 1.6.0-update4
  • Version 1.6.0-update5
  • Version 1.6.0-update6
  • Version 1.6.0-update7
  • Version 1.6.0-update8
  • Version 1.6.0-update9
  • Version 1.6.0-update10
  • Version 1.6.0-update11
  • Version 1.6.0-update12
  • Version 1.6.0-update13
  • Version 1.6.0-update14
  • Version 1.6.0-update15
  • Version 1.6.0-update16
  • Version 1.6.0-update17
  • Version 1.6.0-update18
  • Version 1.6.0-update19
  • Version 1.6.0-update20
  • Version 1.6.0-update21
  • Version 1.6.0-update22
  • Version 1.6.0-update23
  • Version 1.6.0-update24
  • Version 1.6.0-update25
  • Version 1.6.0-update26
  • Version 1.6.0-update27
  • Version 1.6.0-update29
  • Version 1.6.0-update30
  • Version 1.6.0-update31
  • Version 1.6.0-update32
  • Version 1.6.0-update33
  • Version 1.6.0-update34
  • Version 1.7.0
  • Version 1.7.0-update1
  • Version 1.7.0-update2
  • Version 1.7.0-update3
  • Version 1.7.0-update4
  • Version 1.7.0-update5
  • Version 1.7.0-update6
JavaServers and applications · cpe:a:oracle:jre
  • Version 1.7.0-update6
  • Version 1.7.0-update5
  • Version 1.7.0-update4
  • Version 1.7.0-update3
All 40 release lines
  • Version 1.6.0
  • Version 1.6.0-update1
  • Version 1.6.0-update2
  • Version 1.6.0-update3
  • Version 1.6.0-update4
  • Version 1.6.0-update5
  • Version 1.6.0-update6
  • Version 1.6.0-update7
  • Version 1.6.0-update9
  • Version 1.6.0-update10
  • Version 1.6.0-update11
  • Version 1.6.0-update12
  • Version 1.6.0-update13
  • Version 1.6.0-update14
  • Version 1.6.0-update15
  • Version 1.6.0-update16
  • Version 1.6.0-update17
  • Version 1.6.0-update18
  • Version 1.6.0-update19
  • Version 1.6.0-update20
  • Version 1.6.0-update21
  • Version 1.6.0-update22
  • Version 1.6.0-update23
  • Version 1.6.0-update24
  • Version 1.6.0-update25
  • Version 1.6.0-update26
  • Version 1.6.0-update27
  • Version 1.6.0-update29
  • Version 1.6.0-update30
  • Version 1.6.0-update31
  • Version 1.6.0-update32
  • Version 1.6.0-update33
  • Version 1.6.0-update34
  • Version 1.7.0
  • Version 1.7.0-update1
  • Version 1.7.0-update2
  • Version 1.7.0-update3
  • Version 1.7.0-update4
  • Version 1.7.0-update5
  • Version 1.7.0-update6

Known exploited

CISA name
Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution Vulnerability
Required action
Apply updates per vendor instructions.
Due for US agencies
24 Mar 2022
Used in ransomware
Yes, known

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-4681
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-4681