Vulnerability record · CVE-2013-0422 · published 10 January 2013
CVE-2013-0422: Oracle Java 7 JMX/MBean and Reflection API sandbox bypass RCE
Oracle · Jdk
Oracle Java 7 before Update 11 contains two flaws: the public getMBeanInstantiator method in JmxMBeanServer exposes a private MBeanInstantiator that can be used with findClass to obtain arbitrary Class references, and recursion through the Reflection API bypasses the java.lang.invoke.MethodHandles.Lookup.checkSecurityManager check because sun.reflect.Reflection.getCallerClass cannot skip new reflection API frames. Together these allow a remote attacker to escape the Java sandbox and run arbitrary code, which matters because Java 7 was widely deployed and the flaw was exploited in the wild within days of disclosure.
Description
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using the public getMBeanInstantiator method in the JmxMBeanServer class to obtain a reference to a private MBeanInstantiator object, then retrieving arbitrary Class references using the findClass method, and (2) using the Reflection API with recursion in a way that bypasses a security check by the java.lang.invoke.MethodHandles.Lookup.checkSecurityManager method due to the inability of the sun.reflect.Reflection.getCallerClass method to skip frames related to the new reflection API, as exploited in the wild in January 2013, as demonstrated by Blackhole and Nuclear Pack, and a different vulnerability than CVE-2012-4681 and CVE-2012-3174. NOTE: some parties have mapped the recursive Reflection API issue to CVE-2012-3174, but CVE-2012-3174 is for a different vulnerability whose details are not public as of 20130114. CVE-2013-0422 covers both the JMX/MBean and Reflection API issues. NOTE: it was originally reported that Java 6 was also vulnerable, but the reporter has retracted this claim, stating that Java 6 is not exploitable because the relevant code is called in a way that does not bypass security checks. NOTE: as of 20130114, a reliable third party has claimed that the findClass/MBeanInstantiator vector was not fixed in Oracle Java 7 Update 11. If there is still a vulnerable condition, then a separate CVE identifier might be created for the unfixed issue.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8, CISA KEV listing with known ransomware use, EPSS above 97 percent and confirmed in-the-wild exploit kit exploitation make this a top-priority remote code execution flaw.
What it is
Oracle Java 7 before Update 11 contains two flaws: the public getMBeanInstantiator method in JmxMBeanServer exposes a private MBeanInstantiator that can be used with findClass to obtain arbitrary Class references, and recursion through the Reflection API bypasses the java.lang.invoke.MethodHandles.Lookup.checkSecurityManager check because sun.reflect.Reflection.getCallerClass cannot skip new reflection API frames. Together these allow a remote attacker to escape the Java sandbox and run arbitrary code, which matters because Java 7 was widely deployed and the flaw was exploited in the wild within days of disclosure.
Impact
An attacker gains arbitrary code execution in the context of the Java process, typically the logged-in user's browser or desktop session, enabling malware installation, credential theft and lateral movement.
Attack surface
Reached remotely over the network with no authentication and no user interaction beyond loading attacker-controlled Java content, such as a malicious applet or Java Web Start application, per the CVSS vector AV:N/AC:L/PR:N/UI:N. The flaws are in the Java runtime itself, not in a specific application.
Exploitation
Listed in CISA KEV (added 2022-05-25) with known ransomware campaign use, and EPSS 30-day probability is 0.97612 (99.9th percentile). References describe in-the-wild exploitation in January 2013 via the Blackhole and Nuclear Pack exploit kits, and a third party claimed the findClass/MBeanInstantiator vector was not fully fixed in Java 7 Update 11.
What to do
- Upgrade Oracle Java 7 to Update 11 or later, and apply the corresponding vendor updates for OpenJDK, Ubuntu and openSUSE; note the reported claim that the findClass/MBeanInstantiator vector may not have been fully fixed in Update 11, so verify with the latest available release.
- If Java 7 cannot be updated immediately, disable the Java browser plug-in and Java Web Start, or block Java applet execution entirely.
- Set the Java security level to the highest setting and maintain a deployment rule set or exception list that blocks untrusted applets.
- Remove or isolate legacy Java 7 installations that are no longer needed, and restrict outbound network access from systems that must run Java.
- Monitor vendor advisories for any separate CVE covering the unfixed findClass/MBeanInstantiator issue mentioned in the record.
Detection
- Hunt for Java processes spawning unexpected child processes such as cmd.exe, powershell.exe, wscript.exe or /bin/sh, which is characteristic of Java exploit payloads.
- Monitor for Java applet or JNLP downloads from untrusted or newly registered domains, and for HTTP responses delivering JAR files to browsers.
- Review endpoint logs for Java 7 versions below Update 11 and for the presence of known exploit kit landing page patterns associated with Blackhole and Nuclear Pack.
- Alert on suspicious file writes or persistence creation originating from javaw.exe, java.exe or the browser plug-in process.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2013-0422 to the Known Exploited Vulnerabilities catalog on 25 May 2022 as "Oracle JRE Remote Code Execution Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 15 June 2022.
Affected products
4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2013-0422 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2013-0422), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.