Patchfirst
CVE-2019-5736 Public exploit EPSS 98.5%

runc through 1.0-rc6, as used in Docker before 18.09.2 and other products, allows attackers to overwrite the host runc…

Summary

The flaw is a file-descriptor mishandling issue, tied to /proc/self/exe, in runc through 1.0-rc6 as used in Docker before 18.09.2 and other products. An attacker who can run a command as root in a container, either by starting a new container from an attacker-controlled image or by using docker exec on an existing container they already have write access to, can overwrite the host runc binary and gain root access on the host.

Official description · CVE.org

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.

Breakdown
66.2 / 100
Exploited
Yes, in VulnCheck KEV
Reports
1
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 4 years after disclosure. Public exploit code (Metasploit) was available 41 days before disclosure.

  1. Public exploit codeMetasploit41 days before
  2. Disclosedday 0
  3. Named in a threat reportunit42.paloaltonetworks.com+24 mo
  4. First seen exploitedVulnCheck KEV evidence+4 yrs

See the family tree

A fix was bypassed or incomplete once over 5 years.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2016-9962RunC allowed additional container processes via 'runc exec' to…31 Jan 2017
  2. relatedMedium

    Why these are linked:

    This CVECVE-2019-5736runc through 1.0-rc6, as used in Docker before 18.09.2 and other…11 Feb 2019
  3. relatedLow

    Why these are linked:

    • Stated in the CVE textThis is similar to CVE-2019-5736.
    CVE-2019-12499Firejail before 0.9.60 allows truncation (resizing to length 0)…31 May 2019
  4. same family
    CVE-2020-14298The version of docker as released for Red Hat Enterprise Linux 7…13 Jul 2020
  5. same family
    CVE-2021-43784Overflow in netlink bytemsg length field allows attacker to…6 Dec 2021

14 more CVEs are in this family. See the family tree

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

ExecutionTA0002

Deploy Container T1610 Medium
AI mapping from the description · how it is exploited

attacker runs commands inside container

a command as root within one of these types of containers
From the official description (CVE.org) Original (opens in a new tab) ↗

Privilege EscalationTA0004

Escape to Host T1611 Medium
AI mapping from the description · primary impact

container escape to host root

overwrite the host runc binary (and consequently obtain host root access)
From the official description (CVE.org) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 2 general rules for its techniques

Rules for this CVE

0 that reference CVE-2019-5736 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Escape to HostT16112 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Named in 1 threat report
1 reportUnit 42Feb 2021

Reports are matched by finding the exact id CVE-2019-5736 in their text; nobody has reviewed the match. One passage is shown per report, at most 320 characters, linked to the original.

Also mentioned in 10 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

66 links, grouped by NVD tag

Other 25

github.com/opencontainers/runc/commit/6635b4f0c6af3810594d2770f662f34ddc15b40dgithub.com/rancher/runc-cvegithub.com/docker/docker-ce/releases/tag/v18.09.2synology.com/security/advisory/Synology_SA_19_06security.netapp.com/advisory/ntap-20190307-0008/github.com/q3k/cve-2019-5736-pocgithub.com/opencontainers/runc/commit/0a8e4117e7f715d5fbeef398405813ce8e88558baws.amazon.com/security/security-bulletins/AWS-2019-002/
Show 17 moreShow feweropenwall.com/lists/oss-security/2019/02/11/2kubernetes.io/blog/2019/02/11/runc-and-cve-2019-5736/access.redhat.com/security/cve/cve-2019-5736github.com/Frichetten/CVE-2019-5736-PoCsupport.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbhf03913en_usbrauner.github.io/2019/02/12/privileged-containers.htmltwistlock.com/2019/02/11/how-to-mitigate-cve-2019-5736-in-runc-and-docker/cloud.google.com/kubernetes-engine/docs/security-bulletins#february-11-2019-runcaccess.redhat.com/security/vulnerabilities/runcescapeblog.dragonsector.pl/2019/02/cve-2019-5736-escape-from-docker-and.htmlbugzilla.suse.com/show_bug.cgi?id=1121967support.mesosphere.com/s/article/Known-Issue-Container-Runtime-Vulnerability-MSPH-2019-0003softwaresupport.softwaregrp.com/document/-/facetsearch/document/KM03410944azure.microsoft.com/en-us/updates/cve-2019-5736-and-runc-vulnerability/azure.microsoft.com/en-us/updates/iot-edge-fix-cve-2019-5736/packetstormsecurity.com/files/163339/Docker-Container-Escape.htmlpacketstormsecurity.com/files/165197/Docker-runc-Command-Execution-Proof-Of-Concept.html

vendor-advisory 22

access.redhat.com/errata/RHSA-2019:0408access.redhat.com/errata/RHSA-2019:0401access.redhat.com/errata/RHSA-2019:0303tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190215-runcaccess.redhat.com/errata/RHSA-2019:0304lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.htmllists.opensuse.org/opensuse-security-announce/2019-04/msg00074.htmllists.opensuse.org/opensuse-security-announce/2019-04/msg00091.html
Show 14 moreShow fewerlists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6A4OSFM5GGOWW4ECELV5OHX2XRAUSPH/lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SWFJGIPYAAAMVSWWI3QWYXGA3ZBU2H4W/access.redhat.com/errata/RHSA-2019:0975lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.htmllists.opensuse.org/opensuse-security-announce/2019-05/msg00073.htmllists.opensuse.org/opensuse-security-announce/2019-06/msg00011.htmllists.opensuse.org/opensuse-security-announce/2019-06/msg00015.htmlusn.ubuntu.com/4048-1/lists.opensuse.org/opensuse-security-announce/2019-08/msg00084.htmllists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EGZKRCKI3Y7FMADO2MENMT4TU24QGHFR/lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DLC52IOJN6IQJWJ6CUI6AIUP6GVVG2QP/lists.opensuse.org/opensuse-security-announce/2019-10/msg00007.htmllists.opensuse.org/opensuse-security-announce/2019-10/msg00029.htmlsecurity.gentoo.org/glsa/202003-21
↑ ↓ chooseEnter openEsc close