Rapid7 Vulnerability & Exploit Database

Oracle DB 11g R1/R2 DBMS_JVM_EXP_PERMS OS Code Execution

Back to Search

Oracle DB 11g R1/R2 DBMS_JVM_EXP_PERMS OS Code Execution



This module exploits a flaw (0 day) in DBMS_JVM_EXP_PERMS package that allows any user with create session privilege to grant themselves java IO privileges. Identified by David Litchfield. Works on 11g R1 and R2 (Windows only).


  • sid <sid@notsosecure.com>


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 auxiliary/sqli/oracle/jvm_os_code_11g
msf auxiliary(jvm_os_code_11g) > show actions
msf auxiliary(jvm_os_code_11g) > set ACTION < action-name >
msf auxiliary(jvm_os_code_11g) > show options
    ...show and set options...
msf auxiliary(jvm_os_code_11g) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security