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

- Page: https://www.vulneraibility.com/cve/CVE-2019-5736
- CVSS: 8.6
- Known exploited: not in CISA KEV as of our last sync
- EPSS: 98.45% (percentile 99.9)
- Public exploit code: 2 on Exploit-DB · 1 Metasploit module · 28 GitHub proofs of concept (first 2019-02-12)
- Published: 2019-02-11

## Affected

- docker:docker
- linuxfoundation:runc
- redhat:container_development_kit
- redhat:openshift
- redhat:enterprise_linux
- redhat:enterprise_linux_server
- google:kubernetes_engine
- linuxcontainers:lxc
- hp:onesphere
- netapp:hci_management_node
- netapp:solidfire
- apache:mesos
- opensuse:backports_sle
- opensuse:leap
- d2iq:kubernetes_engine
- d2iq:dc\/os
- fedoraproject:fedora
- canonical:ubuntu_linux
- microfocus:service_management_automation

## References

- [other] https://github.com/opencontainers/runc/commit/6635b4f0c6af3810594d2770f662f34ddc15b40d
- [advisory] https://access.redhat.com/errata/RHSA-2019:0408
- [other] https://github.com/rancher/runc-cve
- [advisory] https://access.redhat.com/errata/RHSA-2019:0401
- [other] https://github.com/docker/docker-ce/releases/tag/v18.09.2
- [other] https://www.synology.com/security/advisory/Synology_SA_19_06
- [other] https://security.netapp.com/advisory/ntap-20190307-0008/
- [advisory] https://access.redhat.com/errata/RHSA-2019:0303
- [advisory] https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190215-runc
- [other] https://github.com/q3k/cve-2019-5736-poc
- [exploit] https://www.exploit-db.com/exploits/46359/
- [other] https://github.com/opencontainers/runc/commit/0a8e4117e7f715d5fbeef398405813ce8e88558b
- [other] https://aws.amazon.com/security/security-bulletins/AWS-2019-002/
- [other] https://www.openwall.com/lists/oss-security/2019/02/11/2
- [other] https://kubernetes.io/blog/2019/02/11/runc-and-cve-2019-5736/
- [other] https://access.redhat.com/security/cve/cve-2019-5736
- [exploit] https://www.exploit-db.com/exploits/46369/
- [advisory] https://access.redhat.com/errata/RHSA-2019:0304
- [other] https://github.com/Frichetten/CVE-2019-5736-PoC
- [other] https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03913en_us
- [other] https://brauner.github.io/2019/02/12/privileged-containers.html
- [other] https://www.twistlock.com/2019/02/11/how-to-mitigate-cve-2019-5736-in-runc-and-docker/
- [other] https://cloud.google.com/kubernetes-engine/docs/security-bulletins#february-11-2019-runc
- [other] http://www.securityfocus.com/bid/106976
- [other] https://access.redhat.com/security/vulnerabilities/runcescape
- [other] https://blog.dragonsector.pl/2019/02/cve-2019-5736-escape-from-docker-and.html
- [other] https://bugzilla.suse.com/show_bug.cgi?id=1121967
- [other] https://lists.apache.org/thread.html/b162dd624dc088cd634292f0402282a1d1d0ce853baeae8205bc033c%40%3Cdev.mesos.apache.org%3E
- [other] https://lists.apache.org/thread.html/a258757af84c5074dc7bf932622020fd4f60cef65a84290380386706%40%3Cuser.mesos.apache.org%3E
- [other] http://www.openwall.com/lists/oss-security/2019/03/23/1
- [other] https://support.mesosphere.com/s/article/Known-Issue-Container-Runtime-Vulnerability-MSPH-2019-0003
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00074.html
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00091.html
- [advisory] https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6A4OSFM5GGOWW4ECELV5OHX2XRAUSPH/
- [advisory] https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SWFJGIPYAAAMVSWWI3QWYXGA3ZBU2H4W/
- [other] https://softwaresupport.softwaregrp.com/document/-/facetsearch/document/KM03410944
- [advisory] https://access.redhat.com/errata/RHSA-2019:0975
- [other] https://azure.microsoft.com/en-us/updates/cve-2019-5736-and-runc-vulnerability/
- [other] https://azure.microsoft.com/en-us/updates/iot-edge-fix-cve-2019-5736/
- [other] https://lists.apache.org/thread.html/acacf018c12636e41667e94ac0a1e9244e887eef2debdd474640aa6e%40%3Cdev.dlab.apache.org%3E
- [other] https://lists.apache.org/thread.html/a585f64d14c31ab393b90c5f17e41d9765a1a17eec63856ce750af46%40%3Cdev.dlab.apache.org%3E
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00073.html
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html
- [advisory] http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html
- [other] http://www.openwall.com/lists/oss-security/2019/06/28/2
- [other] http://www.openwall.com/lists/oss-security/2019/07/06/3
- [other] http://www.openwall.com/lists/oss-security/2019/07/06/4
- [advisory] https://usn.ubuntu.com/4048-1/

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
