Advisory Details

April 18th, 2018

Oracle Java MethodHandles setVolatile Type Confusion Sandbox Escape Vulnerability

ZDI-18-306
ZDI-CAN-5504

CVE ID CVE-2018-2825
CVSS SCORE 6.8, AV:N/AC:M/Au:N/C:P/I:P/A:P
AFFECTED VENDORS Oracle
AFFECTED PRODUCTS Java
VULNERABILITY DETAILS


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Oracle Java. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the implementation of the setVolatile method in the MethodHandles class. Due to unsafe handling of reflection of privileged classes inside the MethodHandles class, it is possible for untrusted code to gain access to privileged methods and properties. An attacker can leverage this vulnerability to execute code under the context of the current process.

ADDITIONAL DETAILS Oracle has issued an update to correct this vulnerability. More details can be found at:
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
DISCLOSURE TIMELINE
  • 2017-12-19 - Vulnerability reported to vendor
  • 2018-04-18 - Coordinated public release of advisory
  • 2018-04-18 - Advisory Updated
CREDIT XOR19
BACK TO ADVISORIES