draft preview · not published · notes marked "Before launch" will not appear on the live site

Home / Known exploited

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

Exploited in attacksRansomware usePublic exploit code

Yes. CVE-2012-4681 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 3 March 2022. It is known to have been used in ransomware campaigns. Public exploit code is available: 1 Metasploit module and 1 Exploit-DB entry. EPSS puts the chance of further exploitation attempts in the next 30 days at 98.5%.

Exploited in real attacks
Yes. On CISA's exploited list since 3 March 2022
Used in ransomware
Yes, known ransomware use
Public exploit code
1 Metasploit module and 1 Exploit-DB entry
Chance of exploitation (EPSS)
98.5% in the next 30 days, higher than 99.9% of scored vulnerabilities. Scored 5 December 2026
Severity (CVSS)
9.8 Critical (version 3.1)
Affects
Oracle Java SE
Type of flaw
Improper access control (CWE-284)
Published
28 August 2012
US federal patch deadline
24 March 2022

What it is

The Java Runtime Environment (JRE) component in Oracle Java SE allow for remote code execution.

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.

Description from the CVE record.

Is CVE-2012-4681 being exploited?

Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2012-4681 on 3 March 2022. That was 9 years after the CVE was published, so attackers are still finding unpatched systems long after the fix. CISA also marks it as known to be used in ransomware campaigns.

Public exploit code

These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.

What to do

CISA's required action: Apply updates per vendor instructions.

Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.

How to check whether you are exposed

  1. Find every copy. List each place Oracle Java SE runs, including test systems and anything set up outside IT.
  2. Compare versions. Match what you find against the affected versions in the vendor advisory.
  3. Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
  4. Assume low-skill attackers can use it. A Metasploit module exists, which packages the attack into a standard tool.

HackDrill

Find out whether this is reachable in your systems.

A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in Java SE. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.

Other tracked vulnerabilities in Oracle products

CVEWhat it affectsStatusEPSSPublished
CVE-2026-21962Oracle HTTP Server and Oracle Weblogic Server Proxy Plug-inNo public exploit found74.3%20 January 2026
CVE-2026-46817Oracle E-Business SuiteNo public exploit found14.2%28 May 2026
CVE-2026-35273Oracle PeopleSoft Enterprise PeopleToolsRansomware Public exploit97.5%11 June 2026
CVE-2024-21182Oracle WebLogic ServerNo public exploit found74.2%16 July 2024
CVE-2025-61757Oracle Fusion MiddlewarePublic exploit89.8%21 October 2025
CVE-2025-61884Oracle E-Business SuiteRansomware Public exploit96.2%12 October 2025

Sources

Machine-readable: /api/cve/CVE-2012-4681.json