Rapid7 Vulnerability & Exploit Database

Docker Privileged Container Kernel Escape

Back to Search

Docker Privileged Container Kernel Escape

Disclosed
05/01/2014
Created
05/06/2024

Description

This module performs a container escape onto the host as the daemon user. It takes advantage of the SYS_MODULE capability. If that exists and the linux headers are available to compile on the target, then we can escape onto the host.

Author(s)

  • Nick Cottrell <Rad10Logic>
  • Eran Ayalon
  • Ilan Sokol

Platform

Linux,Unix

Architectures

cmd

Development

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/linux/local/docker_privileged_container_kernel_escape
msf exploit(docker_privileged_container_kernel_escape) > show targets
    ...targets...
msf exploit(docker_privileged_container_kernel_escape) > set TARGET < target-id >
msf exploit(docker_privileged_container_kernel_escape) > show options
    ...show and set options...
msf exploit(docker_privileged_container_kernel_escape) > exploit

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

;