Exploit database

Vulnerability

CVE-2019-5736

Vulnerability details

Score
8.6
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Description

runc through 1.0-rc6, as used in Docker before 18.09.2 and other products, allows attackers to overwrite the host runc binary (and consequently obtain host root access) by leveraging the ability to execute a command as root within one of these types of containers: (1) a new container with an attacker-controlled image, or (2) an existing container, to which the attacker previously had write access, that can be attached with docker exec. This occurs because of file-descriptor mishandling, related to /proc/self/exe.

CVE Program

Exploit source choices

25 sources
Docker Container Escape Via runC Overwrite
MSF-linux--local--docker_runc_escapeMetasploitLinux,Unix / remote

This module leverages a flaw in `runc` to escape a Docker container and get command execution on the host as root. This vulnerability is identified as CVE-2019-5736. It overwrites the `runc` binary with the payload and wait for someone to use `docker exec` to get into the container. This will trigger the payload execution. Note that executing this exploit carries important risks regarding the Docker installation integrity on the target and inside the container ('Side Effects' section in the documentation).

2019-01-01docker_runc_escape.rb
cdk-team/cdk
GH-5a853275f3d5514fc655ded3e07c494eGitHubUnofficial GitHub source

📦 Make security testing of K8s, Docker, and Containerd easier.

2020-11-05157 files · 4,802 stars
0xsyr0/oscp
GH-1e9613ea0d155c33d16520580dbed873GitHubUnofficial GitHub source

OSCP Cheat Sheet

2021-10-2262 files · 3,887 stars
brompwnie/botb
GH-475873289cb270198d339301e6b06c99GitHubUnofficial GitHub source

A container analysis and exploitation tool for pentesters and engineers.

2019-02-2813 files · 691 stars
frichetten/cve-2019-5736-poc
GH-73e742aa0005e7907820c814ab4cea88GitHubUnofficial GitHub source

PoC for CVE-2019-5736

2019-02-136 files · 659 stars
alevsk/dvka
GH-b0c92a551f9cd9372b06f87b24aa6320GitHubUnofficial GitHub source

Damn Vulnerable Kubernetes App (DVKA) is a series of apps deployed on Kubernetes that are damn vulnerable.

2021-12-31427 files · 212 stars
q3k/cve-2019-5736-poc
GH-6de48205f6d55fb78c4972f84e722d13GitHubUnofficial GitHub source

Unweaponized Proof of Concept for CVE-2019-5736 (Docker escape)

2019-02-124 files · 211 stars
twistlock/runc-cve-2019-5736
GH-ae7a642d2ab331b7b63f9fe2c0692b04GitHubUnofficial GitHub source

CVE-2019-5736 POCs

2019-02-2013 files · 86 stars
jas502n/cve-2019-5736
GH-f1c2bd769ee33fbf9171286046dd4198GitHubUnofficial GitHub source

runc容器逃逸漏洞预警

2019-02-1414 files · 14 stars
agppp/cve-2019-5736-poc
GH-545b5eb1957c83a492961d999cf91e01GitHubUnofficial GitHub source

getshell test

2019-02-155 files · 7 stars
bitdefender/vbh_sample
GH-9875cf6fc4cdd03cb72c9b4dba399b03GitHubUnofficial GitHub source

bitdefender/vbh_sample source repository

2019-04-0310 files · 4 stars
epsteina16/docker-escape-miner
GH-26bc54c59fbdac71349de2024421fcc6GitHubUnofficial GitHub source

Code sample for using exploit CVE-2019-5736 to mine bitcoin with no association to original container or user.

2019-12-1211 files · 3 stars
jlsakuya/cve-2022-0847-container-escape
GH-fcc61aa0c63a4e448c41e6eef70145e6GitHubUnofficial GitHub source

A simple exploit that uses dirtypipe to inject shellcode into runC entrypoint to implement container escapes.

2023-04-262 files · 2 stars
b3d3c/poc-cve-2019-5736
GH-a9c05bd8840662af694275aea1f963dcGitHubUnofficial GitHub source

b3d3c/poc-cve-2019-5736 source repository

2019-02-192 files · 1 stars
giverofgifts/cve-2019-5736-custom-runtime
GH-d0b67e38fe5d26a82ca59dff60e3d093GitHubUnofficial GitHub source

CVE-2019-5736 implemented in a self-written container runtime to understand the exploit.

2020-02-044 files · 1 stars
likekabin/cve-2019-5736
GH-6041527d7ac849328fd326cb1036202bGitHubUnofficial GitHub source

likekabin/cve-2019-5736 source repository

2019-02-1414 files · 1 stars
milloni/cve-2019-5736-exp
GH-2e90af4b8d59f169558f1036a6e3ebd5GitHubUnofficial GitHub source

Exploit for the CVE-2019-5736 runc vulnerability

2019-04-134 files · 1 stars
aishee/docker-2019-5736
GH-a8eb95aab3d1ca076eef010e8e5ae8c0GitHubUnofficial GitHub source

Exploit code

2019-02-173 files · 0 stars
bbrathnayaka/poc-cve-2019-5736
GH-8581a2775a3e3cff608fabe5361ebfacGitHubUnofficial GitHub source

bbrathnayaka/poc-cve-2019-5736 source repository

2020-05-1015 files · 0 stars
billith/cve-2019-5736-poc
GH-47fbbccb92567ead8d598d83860e12a5GitHubUnofficial GitHub source

billith/cve-2019-5736-poc source repository

2020-05-013 files · 0 stars
burlakar/tpc
GH-901b6fe76b0894189adcf9ab2e50b7faGitHubUnofficial GitHub source

burlakar/tpc source repository

2020-05-174 files · 0 stars
christineedgarse/secrets6
GH-e142927afeaa71cbf8043bbc9030c47dGitHubUnofficial GitHub source

christineedgarse/secrets6 source repository

2024-01-29196 files · 0 stars