cve.bz

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

9.8 criticalKEVExploitEPSS 99%

Critical (9.8) in Oracle Java SE. In CISA KEV since 2022-03-03, with known ransomware use. EPSS 99% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
99% (unchanged from 99% a week ago; 99% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-03-03, due 2022-03-24, known ransomware use
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2022-03-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2012-4681 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2012-4681?via=ask-ai-copy and https://cve.bz/cve/CVE-2012-4681?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2012-4681 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
oracle:jdk1.6.0
oracle:jdk1.6.0:update1
oracle:jdk1.6.0:update10
oracle:jdk1.6.0:update11
oracle:jdk1.6.0:update12
oracle:jdk1.6.0:update13
oracle:jdk1.6.0:update14
oracle:jdk1.6.0:update15
oracle:jdk1.6.0:update16
oracle:jdk1.6.0:update17
oracle:jdk1.6.0:update18
oracle:jdk1.6.0:update19
oracle:jdk1.6.0:update2
oracle:jdk1.6.0:update20
oracle:jdk1.6.0:update21
oracle:jdk1.6.0:update22
oracle:jdk1.6.0:update23
oracle:jdk1.6.0:update24
oracle:jdk1.6.0:update25
oracle:jdk1.6.0:update26
oracle:jdk1.6.0:update27
oracle:jdk1.6.0:update29
oracle:jdk1.6.0:update3
oracle:jdk1.6.0:update30
oracle:jdk1.6.0:update31
oracle:jdk1.6.0:update32
oracle:jdk1.6.0:update33
oracle:jdk1.6.0:update34
oracle:jdk1.6.0:update4
oracle:jdk1.6.0:update5
oracle:jdk1.6.0:update6
oracle:jdk1.6.0:update7
oracle:jdk1.6.0:update8
oracle:jdk1.6.0:update9
oracle:jdk1.7.0
oracle:jdk1.7.0:update1
oracle:jdk1.7.0:update2
oracle:jdk1.7.0:update3
oracle:jdk1.7.0:update4
oracle:jdk1.7.0:update5
oracle:jdk1.7.0:update6
oracle:jre1.6.0
oracle:jre1.6.0:update1
oracle:jre1.6.0:update10
oracle:jre1.6.0:update11
oracle:jre1.6.0:update12
oracle:jre1.6.0:update13
oracle:jre1.6.0:update14
oracle:jre1.6.0:update15
oracle:jre1.6.0:update16
oracle:jre1.6.0:update17
oracle:jre1.6.0:update18
oracle:jre1.6.0:update19
oracle:jre1.6.0:update2
oracle:jre1.6.0:update20
oracle:jre1.6.0:update21
oracle:jre1.6.0:update22
oracle:jre1.6.0:update23
oracle:jre1.6.0:update24
oracle:jre1.6.0:update25
oracle:jre1.6.0:update26
oracle:jre1.6.0:update27
oracle:jre1.6.0:update29
oracle:jre1.6.0:update3
oracle:jre1.6.0:update30
oracle:jre1.6.0:update31
oracle:jre1.6.0:update32
oracle:jre1.6.0:update33
oracle:jre1.6.0:update34
oracle:jre1.6.0:update4
oracle:jre1.6.0:update5
oracle:jre1.6.0:update6
oracle:jre1.6.0:update7
oracle:jre1.6.0:update9
oracle:jre1.7.0
oracle:jre1.7.0:update1
oracle:jre1.7.0:update2
oracle:jre1.7.0:update3
oracle:jre1.7.0:update4
oracle:jre1.7.0:update5
oracle:jre1.7.0:update6
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_eus6.3
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_workstation6.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 morejava-1.7.0-openjdk, java-1.7.0-openjdk-src, java-1.7.0-openjdk-demo and 3 more1:1.7.0.5-2.2.1.el6_3.3RHSA-2012:1223
Red Hatrhel_extras:6java-1.7.0-ibm, java-1.7.0-ibm-src, java-1.7.0-ibm-demo and 3 more1:1.7.0.2.0-1jpp.3.el6_3RHSA-2012:1289
Red Hatrhel_extras:6java-1.7.0-oracle, java-1.7.0-oracle-src, java-1.7.0-oracle-jdbc and 2 more1:1.7.0.7-1jpp.5.el6_3RHSA-2012:1225
openSUSETumbleweedjava-1_7_0-openjdk1.7.0.121-1.1openSUSE-SU-2024:10534-1

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat · openSUSE.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This flaw allowed an attacker to circumvent all restrictions applied by the Java security manager. The Java security manager is used to sandbox Java applets in web browsers, but is also used in a variety of other applications.

Red Hat has tested the flaw and confirmed that it affected Java SE 7 provided by OpenJDK 7 (java-1.7.0-openjdk), Oracle Java SE 7 (java-1.7.0-oracle) and IBM Java SE 7 (java-1.7.0-ibm) as shipped with Red Hat Enterprise Linux 6. Updates correcting this issue were released for all affected packages.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6java-1.7.0-openjdk-1:1.7.0.5-2.2.1.el6_3.3Fixed 2012-09-03RHSA-2012:1223
Supplementary for Red Hat Enterprise Linux 6java-1.7.0-oracle-1:1.7.0.7-1jpp.5.el6_3Fixed 2012-09-04RHSA-2012:1225
Supplementary for Red Hat Enterprise Linux 6java-1.7.0-ibm-1:1.7.0.2.0-1jpp.3.el6_3Fixed 2012-09-18RHSA-2012:1289
Red Hat Enterprise Linux 5java-1.6.0-ibmNot affected
Red Hat Enterprise Linux 5java-1.6.0-openjdkNot affected
Red Hat Enterprise Linux 5java-1.6.0-sunNot affected
Red Hat Enterprise Linux 5java-1.7.0-openjdkAffected
Red Hat Enterprise Linux 5java-1.7.0-oracleAffected
Red Hat Enterprise Linux 6java-1.6.0-ibmNot affected
Red Hat Enterprise Linux 6java-1.6.0-openjdkNot affected
Red Hat Enterprise Linux 6java-1.6.0-sunNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2012-4681.

Public exploits

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17).

References

Check your stackJSON