Back to search

Java AtomicReferenceArray Type Violation Vulnerability

This module exploits a vulnerability due to the fact that AtomicReferenceArray uses the Unsafe class to store a reference in an array directly, which may violate type safety if not used properly. This allows a way to escape the JRE sandbox, and load additional classes in order to perform malicious operations.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • Jeroen Frijters
  • sinn3r <sinn3r [at]>
  • juan vazquez <juan.vazquez [at]>
  • egypt <egypt [at]>



  • Generic (Java Payload)
  • Windows x86 (Native Payload)
  • Mac OS X PPC (Native Payload)
  • Mac OS X x86 (Native Payload)
  • Linux x86 (Native Payload)


  • java
  • linux
  • osx
  • solaris
  • windows


  • java
  • x86
  • ppc



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/browser/java_atomicreferencearray msf exploit(java_atomicreferencearray) > show targets ...targets... msf exploit(java_atomicreferencearray) > set TARGET <target-id> msf exploit(java_atomicreferencearray) > show options and set options... msf exploit(java_atomicreferencearray) > exploit

Related Vulnerabilities

Related Modules