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…
Check your servers for CVE-2019-5736
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-5736 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 98.4%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-5736 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-5736RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-5736Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-5736
trivy image --scanners vuln IMAGE | grep CVE-2019-5736
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2019:0408 access.redhat.com · vendor advisory
- RHSA-2019:0401 access.redhat.com · vendor advisory
- RHSA-2019:0303 access.redhat.com · vendor advisory
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190215-runc tools.cisco.com · vendor advisory
- RHSA-2019:0304 access.redhat.com · vendor advisory
- openSUSE-SU-2019:1079 lists.opensuse.org · vendor advisory
- openSUSE-SU-2019:1227 lists.opensuse.org · vendor advisory
- openSUSE-SU-2019:1275 lists.opensuse.org · vendor advisory
- FEDORA-2019-bc70b381ad lists.fedoraproject.org · vendor advisory
- FEDORA-2019-6174b47003 lists.fedoraproject.org · vendor advisory
- RHSA-2019:0975 access.redhat.com · vendor advisory
- openSUSE-SU-2019:1444 lists.opensuse.org · vendor advisory
10 more
- openSUSE-SU-2019:1481 lists.opensuse.org · vendor advisory
- openSUSE-SU-2019:1499 lists.opensuse.org · vendor advisory
- openSUSE-SU-2019:1506 lists.opensuse.org · vendor advisory
- USN-4048-1 usn.ubuntu.com · vendor advisory
- openSUSE-SU-2019:2021 lists.opensuse.org · vendor advisory
- FEDORA-2019-2baa1f7b19 lists.fedoraproject.org · vendor advisory
- FEDORA-2019-c1dac1b3b8 lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2019:2245 lists.opensuse.org · vendor advisory
- openSUSE-SU-2019:2286 lists.opensuse.org · vendor advisory
- GLSA-202003-21 security.gentoo.org · vendor advisory
Exploits and proof of concept
Other references
- https://github.com/opencontainers/runc/commit/6635b4f0c6af3810594d2770f662f34ddc15b40d github.com
- https://github.com/rancher/runc-cve github.com
- https://github.com/docker/docker-ce/releases/tag/v18.09.2 github.com
- https://www.synology.com/security/advisory/Synology_SA_19_06 synology.com
- https://security.netapp.com/advisory/ntap-20190307-0008/ security.netapp.com
- https://github.com/q3k/cve-2019-5736-poc github.com
- https://github.com/opencontainers/runc/commit/0a8e4117e7f715d5fbeef398405813ce8e88558b github.com
- https://aws.amazon.com/security/security-bulletins/AWS-2019-002/ aws.amazon.com
- https://www.openwall.com/lists/oss-security/2019/02/11/2 openwall.com
- https://kubernetes.io/blog/2019/02/11/runc-and-cve-2019-5736/ kubernetes.io
- https://access.redhat.com/security/cve/cve-2019-5736 access.redhat.com
- https://github.com/Frichetten/CVE-2019-5736-PoC github.com
30 more
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03913en_us support.hpe.com
- https://brauner.github.io/2019/02/12/privileged-containers.html brauner.github.io
- https://www.twistlock.com/2019/02/11/how-to-mitigate-cve-2019-5736-in-runc-and-docker/ twistlock.com
- https://cloud.google.com/kubernetes-engine/docs/security-bulletins#february-11-2019-runc cloud.google.com
- 106976 securityfocus.com · vdb entry
- https://access.redhat.com/security/vulnerabilities/runcescape access.redhat.com
- https://blog.dragonsector.pl/2019/02/cve-2019-5736-escape-from-docker-and.html blog.dragonsector.pl
- https://bugzilla.suse.com/show_bug.cgi?id=1121967 bugzilla.suse.com
- [mesos-dev] 20190323 CVE-2019-0204: Some Mesos components can be overwritten making arbitrary code execution possible. lists.apache.org · mailing list
- [mesos-user] 20190323 CVE-2019-0204: Some Mesos components can be overwritten making arbitrary code execution possible. lists.apache.org · mailing list
- [oss-security] 20190323 CVE-2019-0204: Some Mesos components can be overwritten making arbitrary code execution… openwall.com · mailing list
- https://support.mesosphere.com/s/article/Known-Issue-Container-Runtime-Vulnerability-MSPH-2019-0003 support.mesosphere.com
- https://softwaresupport.softwaregrp.com/document/-/facetsearch/document/KM03410944 softwaresupport.softwaregrp.com
- https://azure.microsoft.com/en-us/updates/cve-2019-5736-and-runc-vulnerability/ azure.microsoft.com
- https://azure.microsoft.com/en-us/updates/iot-edge-fix-cve-2019-5736/ azure.microsoft.com
- [dlab-dev] 20190524 [jira] [Created] (DLAB-723) Runc vulnerability CVE-2019-5736 lists.apache.org · mailing list
- [dlab-dev] 20190524 [jira] [Updated] (DLAB-723) Runc vulnerability CVE-2019-5736 lists.apache.org · mailing list
- [oss-security] 20190628 Re: linux-distros membership application - Microsoft openwall.com · mailing list
- [oss-security] 20190706 Re: linux-distros membership application - Microsoft openwall.com · mailing list
- [oss-security] 20190706 Re: linux-distros membership application - Microsoft openwall.com · mailing list
- [dlab-dev] 20190923 [jira] [Assigned] (DLAB-723) Runc vulnerability CVE-2019-5736 lists.apache.org · mailing list
- [oss-security] 20191023 Membership application for linux-distros - VMware openwall.com · mailing list
- [oss-security] 20191029 Re: Membership application for linux-distros - VMware openwall.com · mailing list
- [dlab-dev] 20200525 [jira] [Deleted] (DLAB-723) Runc vulnerability CVE-2019-5736 lists.apache.org · mailing list
- [geode-issues] 20200831 [jira] [Created] (GEODE-8471) Dependency security issues in geode-core-1.12 lists.apache.org · mailing list
- http://packetstormsecurity.com/files/163339/Docker-Container-Escape.html packetstormsecurity.com
- http://packetstormsecurity.com/files/165197/Docker-runc-Command-Execution-Proof-Of-Concept.html packetstormsecurity.com
- [oss-security] 20240201 runc: CVE-2024-21626: high severity container breakout attack openwall.com · mailing list
- [oss-security] 20240201 Re: runc: CVE-2024-21626: high severity container breakout attack openwall.com · mailing list
- [oss-security] 20240202 Re: Re: runc: CVE-2024-21626: high severity container breakout attack openwall.com · mailing list
Source: the record CVE-2019-5736 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse