1. CVE archive
  2. 2013
  3. CVE-2013-0422

CVE-2013-0422

9.8 Critical severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critical

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.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 12.10 –
opensuse opensuse 12.2 –
oracle jdk 1.7.0 –
oracle jdk 1.7.0 update1 –
oracle jdk 1.7.0 update10 –
oracle jdk 1.7.0 update2 –
oracle jdk 1.7.0 update3 –
oracle jdk 1.7.0 update4 –
oracle jdk 1.7.0 update5 –
oracle jdk 1.7.0 update6 –
oracle jdk 1.7.0 update7 –
oracle jdk 1.7.0 update9 –
oracle jre 1.7.0 –
oracle jre 1.7.0 update1 –
oracle jre 1.7.0 update10 –
oracle jre 1.7.0 update2 –
oracle jre 1.7.0 update3 –
oracle jre 1.7.0 update4 –
oracle jre 1.7.0 update5 –
oracle jre 1.7.0 update6 –
oracle jre 1.7.0 update7 –
oracle jre 1.7.0 update9 –
All 823 Oracle Jdk vulnerabilities

Vulnerability type

CWE-284 Improper Access Control

The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

Impact on systems

ScopeImpact
Other Varies by Context, Gain Privileges or Assume Identity
When any mechanism is not applied or otherwise fails, attackers can compromise the security of the product by gaining privileges, reading sensitive information, executing commands, evading detection, etc.

How to prevent it

Architecture and Design · Operation Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
Architecture and Design · Separation of Privilege Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

All 7,879 CWE-284 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org