CVE-2012-4681
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
98.536%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-16
CISA KEV
Listed
added 2022-03-03 · known ransomware use
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-284: Improper Access Control
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution Vulnerability |
|---|---|
| Vendor / product | Oracle / Java SE |
| Date added | 2022-03-03 |
| Federal remediation due date | 2022-03-24 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2022-03-02 |
Timeline
- 2012-08-27First Exploit-DB entry (EDB-ID 20865)1 day before publication
- 2012-08-28Published by the CNA00:00 UTC
- 2022-03-02CISA SSVC decision recorded3473 days after publication
- 2022-03-03Added to the CISA KEV catalog3474 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 20865 | remote | java | 2012-08-27 | yes |
Affected products
| Vendor | Product |
|---|---|
| oracle | jdk |
| oracle | jre |
| redhat | enterprise_linux_desktop |
| redhat | enterprise_linux_eus |
| redhat | enterprise_linux_server |
| redhat | enterprise_linux_workstation |
References
- http://lists.opensuse.org/opensuse-security-announce/2012-09/msg00032.html
- http://lists.opensuse.org/opensuse-security-announce/2012-10/msg00016.html
- http://marc.info/?l=bugtraq&m=135109152819176&w=2
- http://rhn.redhat.com/errata/RHSA-2012-1225.html
- http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html
- http://immunityproducts.blogspot.com/2012/08/java-0day-analysis-cve-2012-4681.html
- http://labs.alienvault.com/labs/index.php/2012/new-java-0day-exploited-in-the-wild/
- http://blog.fireeye.com/research/2012/08/zero-day-season-is-not-over-yet.html
- http://secunia.com/advisories/51044
- http://www.deependresearch.org/2012/08/java-7-vulnerability-analysis.html
- http://www.securityfocus.com/bid/55213
- http://www.us-cert.gov/cas/techalerts/TA12-240A.html
- https://community.rapid7.com/community/metasploit/blog/2012/08/27/lets-start-the-week-with-a-new-java-0day
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-4681
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2012-4681'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2012-4681'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2012-4681'curl 'https://api.contrastcyber.com/cve_products/CVE-2012-4681'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2012-4681'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).