{"exploit":{"id":"EDB-46359","name":"runc < 1.0-rc6 (Docker < 18.09.2) - Container Breakout (1)","description":"runc < 1.0-rc6 (Docker < 18.09.2) - Container Breakout (1)","cves":["CVE-2019-5736"],"author":"feexd","published":"2019-02-12","platform":"linux","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/46359","path":"exploits/linux/local/46359.md","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-46359.md","vulnerabilities":[{"id":"CVE-2019-5736","state":"PUBLISHED","title":null,"titleSource":null,"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2019-5736","cvss":{"version":"3.1","baseScore":8.6,"severity":"high","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2019-5736"},"updatedAt":"2024-08-04T20:01:52.208Z","retrievedAt":"2026-11-26T18:09:32.151Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-46359.png?v=2","url":"https://exploitbin.com/exploits/EDB-46359","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-46359/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-46359/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Usage\nEdit HOST inside `payload.c`, compile with `make`. Start `nc` and run `pwn.sh` inside the container.\n\n# Notes\n- This exploit is destructive: it'll overwrite `/usr/bin/docker-runc` binary *on the host* with the\npayload. It'll also overwrite `/bin/sh` inside the container.\n- Tested only on Debian 9.\n- No attempts were made to make it stable or reliable, it's only tested to work when a `docker exec\n<id> /bin/sh` is issued on the host.\n\nMore complete explanation [here](https://github.com/lxc/lxc/commit/6400238d08cdf1ca20d49bafb85f4e224348bf9d).\n\nDownload: https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/46359.zip","sha256":"25ecf16b452e6b63c2d4ddd206c44dd92af7d4525997d113fc13f7c6fcf9b194","bytes":656,"fetchedAt":"2026-11-26T18:09:27.362Z","encoding":"utf-8 (display only; download retains original bytes)"}