cve.bz

CVE-2019-5736 OS Command Injection

8.6 highExploitEPSS 98%Fix available

High (8.6). EPSS 98% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS
98% (unchanged from 98% a week ago; 98% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-5736 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-5736?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-5736?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-5736 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
docker:dockerbefore 18.09.2
linuxfoundation:runcthrough 0.1.1
linuxfoundation:runc1.0.0:rc1
linuxfoundation:runc1.0.0:rc2
linuxfoundation:runc1.0.0:rc3
linuxfoundation:runc1.0.0:rc4
linuxfoundation:runc1.0.0:rc5
linuxfoundation:runc1.0.0:rc6
redhat:container_development_kit3.7
redhat:openshift3.4
redhat:openshift3.5
redhat:openshift3.6
redhat:openshift3.7
redhat:enterprise_linux8.0
redhat:enterprise_linux_server7.0
linuxcontainers:lxcbefore 3.2.0
apache:mesosfrom 1.4.0 before 1.4.3
apache:mesosfrom 1.5.0 before 1.5.3
apache:mesosfrom 1.6.0 before 1.6.2
apache:mesosfrom 1.7.0 before 1.7.2
opensuse:backports_sle15.0
opensuse:backports_sle15.0:sp1
opensuse:leap15.0
opensuse:leap15.1
opensuse:leap42.3
d2iq:kubernetes_enginebefore 2.2.0-1.13.3
d2iq:dc/osbefore 1.10.10
d2iq:dc/osfrom 1.10.11 before 1.11.9
d2iq:dc/osfrom 1.11.10 before 1.12.1
fedoraproject:fedora29
fedoraproject:fedora30
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
canonical:ubuntu_linux19.04
microfocus:service_management_automation2018.02
microfocus:service_management_automation2018.05
microfocus:service_management_automation2018.08
microfocus:service_management_automation2018.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14lxc1:3.1.0+really3.0.3-4DEBIAN-CVE-2019-5736
Debian12, 13, 14runc1.0.0~rc6+dfsg1-2DEBIAN-CVE-2019-5736
Ubuntu16.04:LTSdocker.io18.06.1-0ubuntu1.2~16.04.1UBUNTU-CVE-2019-5736 USN-4048-1
Ubuntu16.04:LTSrunc1.0.0~rc2+docker1.13.1-0ubuntu1~16.04.1UBUNTU-CVE-2019-5736
Ubuntu18.04:LTSdocker.io18.06.1-0ubuntu1.2~18.04.1UBUNTU-CVE-2019-5736 USN-4048-1
Ubuntu18.04:LTSrunc1.0.0~rc4+dfsg1-6ubuntu0.18.04.1UBUNTU-CVE-2019-5736
Red Hatenterprise_linux:8::appstreambuildah, buildah-debuginfo, buildah-debugsource0:1.5-3.gite94b4f9.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.94-1.git1e99f1d.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource0:0.7.4-3.git9ebe139.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:0.3-2.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreamoci-systemd-hook, oci-systemd-hook-debuginfo, oci-systemd-hook-debugsource1:0.1.15-2.git2d0b8a3.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreamoci-umount, oci-umount-debuginfo, oci-umount-debugsource2:2.3.4-2.git87f9237.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreampodman, podman-docker, podman-debuginfo and 1 more0:1.0.0-2.git921f98f.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreamrunc, runc-debuginfo, runc-debugsource0:1.0.0-55.rc5.dev.git2abd837.module+el8.0.0+3049+59fd2bbaRHSA-2019:0975
Red Hatenterprise_linux:8::appstreamskopeo, skopeo-debuginfo, containers-common and 1 more1:0.1.32-3.git1715c90.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatenterprise_linux:8::appstreamslirp4netns, slirp4netns-debuginfo, slirp4netns-debugsource0:0.1-2.dev.gitc4e1bc5.module+el8.0.0+2958+4e823551RHSA-2019:0975
Red Hatopenshift:3.4::el7, openshift:3.5::el7, openshift:3.6::el7 and 1 moredocker, docker-client, docker-common and 7 more2:1.12.6-79.git5680db5.el7RHSA-2019:0408
Red Hatrhel_extras_other:7docker, docker-client, docker-common and 6 more2:1.13.1-91.git07f3374.el7RHSA-2019:0304
1 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Containers 12containerd1.4.4-16.38.1SUSE-SU-2021:1458-1
SUSELinux Enterprise Module for Containers 12docker20.10.6_ce-98.66.1SUSE-SU-2021:1458-1
SUSELinux Enterprise Module for Containers 12runc1.0.0~rc93-16.8.1SUSE-SU-2021:1458-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSScontainerd1.2.2-16.14.2SUSE-SU-2019:0573-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSScontainerd1.2.6-16.23.1SUSE-SU-2019:2119-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSSdocker18.09.1_ce-98.34.2SUSE-SU-2019:0573-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSSdocker19.03.1_ce-98.46.1SUSE-SU-2019:2119-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSSdocker-runc1.0.0rc5+gitr3562_69663f0bd4b6-1.9.1SUSE-SU-2019:0385-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSSdocker-runc1.0.0rc6+gitr3748_96ec2177ae84-1.17.2SUSE-SU-2019:0573-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSSdocker-runc1.0.0rc8+gitr3826_425e105d5a03-1.29.1SUSE-SU-2019:2119-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSSgolang-github-docker-libnetwork0.7.0.1+gitr2711_2cfbf9b1f981-16.2SUSE-SU-2019:0573-1
SUSELinux Enterprise Module for Containers 12, OpenStack Cloud 6-LTSSgolang-github-docker-libnetwork0.7.0.1+gitr2800_fc5a7d91d54c-25.1SUSE-SU-2019:2119-1
22 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.0containerd1.2.5-lp150.4.14.3openSUSE-SU-2019:1499-1
openSUSELeap 15.0docker18.09.6_ce-lp150.5.17.2openSUSE-SU-2019:1499-1
openSUSELeap 15.0docker-runc1.0.0rc6+gitr3804_2b18fe1d885e-lp150.5.21.2openSUSE-SU-2019:1499-1
openSUSELeap 15.0go1.12-lp150.2.11.1openSUSE-SU-2019:1499-1
openSUSELeap 15.0go1.111.11.9-lp150.9.3openSUSE-SU-2019:1499-1
openSUSELeap 15.0go1.121.12.4-lp150.2.2openSUSE-SU-2019:1499-1
openSUSELeap 15.0golang-github-docker-libnetwork0.7.0.1+gitr2726_872f0a83c98a-lp150.3.14.1openSUSE-SU-2019:1499-1
openSUSELeap 15.0lxc3.1.0-lp150.2.10.1openSUSE-SU-2019:1275-1
openSUSELeap 15.0lxcfs3.0.3-lp150.2.3.1openSUSE-SU-2019:1275-1
openSUSELeap 15.0, Leap 15.1containerd1.2.6-lp151.2.6.1openSUSE-SU-2019:2021-1
openSUSELeap 15.0, Leap 15.1docker19.03.1_ce-lp151.2.12.1openSUSE-SU-2019:2021-1
openSUSELeap 15.0, Leap 15.1docker-runc1.0.0rc8+gitr3826_425e105d5a03-lp151.3.6.1openSUSE-SU-2019:2021-1
13 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8oci-systemd-hook1:0.1.15-2.git2d0b8a3.module_el8.3.0+2044+12421f43ALSA-2019:0975
AlmaLinux8oci-systemd-hook1:0.1.15-2.git2d0b8a3.module_el8.4.0+2496+12421f43ALSA-2019:0975
AlmaLinux8oci-systemd-hook1:0.1.15-2.git2d0b8a3.module_el8.5.0+119+9a9ec082ALSA-2019:0975
AlmaLinux8oci-umount2:2.3.4-2.git87f9237.module_el8.3.0+2044+12421f43ALSA-2019:0975
AlmaLinux8oci-umount2:2.3.4-2.git87f9237.module_el8.4.0+2496+12421f43ALSA-2019:0975
AlmaLinux8oci-umount2:2.3.4-2.git87f9237.module_el8.5.0+119+9a9ec082ALSA-2019:0975
Rocky Linux8oci-systemd-hook1:0.1.15-2.git2d0b8a3.module+el8.4.0+557+48ba8b2fRLSA-2019:0975
Rocky Linux8oci-umount2:2.3.4-2.git87f9237.module+el8.4.0+557+48ba8b2fRLSA-2019:0975
Alpinev3.9flatpak1.0.7-r0ALPINE-CVE-2019-5736
Alpinev3.9runc1.0.0_rc6-r1ALPINE-CVE-2019-5736
Alpinev3.9, v3.10, v3.11 and 13 morelxc3.1.0-r1ALPINE-CVE-2019-5736
Alpinev3.10, v3.12, v3.13 and 11 morerunc1.0.0_rc7-r0ALPINE-CVE-2019-5736
Alpinev3.11runc1.0.0_rc7ALPINE-CVE-2019-5736

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The 'docker' package shipped in Red Hat Enterprise Linux 7 Extras bundles 'runc' since 'docker' starting from version 1.12. Both the 'docker' and 'runc' packages are affected by this issue.

The 'docker-latest' package is deprecated as of Red Hat Enterprise Linux 7.5. Customers using this package should update to the latest 'docker' package shipped in Red Hat Enterprise Linux 7 Extras.

OpenShift Container Platform (OCP) versions 3.9 and later use 'docker' version 1.13 in the default configuration but can be configured to use CRI-O as an alternative, which depends on the 'runc' package. OCP versions 3.9 and later should use the updated 'docker' and 'runc' packages shipped in Red Hat Enterprise Linux 7 Extras.

OCP versions 3.4 through 3.7 originally used 'docker' version 1.12 from the Red Hat Enterprise Linux 7 Extras channel. An updated version of 'docker' 1.12 has been delivered to the RPM channels for OCP versions 3.4 through 3.7.

OCP version 3.9 previously shipped a version of 'runc' in it's RPM repository. OCP 3.9 clusters using CRI-O should update 'runc' from the Red Hat Enterprise Linux 7 Extras channel.

Red Hat Enterprise Linux Atomic Host 7 is not affected by this vulnerability as the target runc binaries are stored on a read-only filesystem and cannot be overwritten.

Red Hat's mitigation

This vulnerability is mitigated on Red Hat Enterprise Linux 7 if SELinux is in enforcing mode. SELinux in enforcing mode is a pre-requisite for OpenShift Container Platform 3.x.

ProductPackageStateAdvisory
OtherFixed 2019-02-25RHSA-2019:0401
Red Hat Enterprise Linux 7 Extrasrunc-0:1.0.0-59.dev.git2abd837.el7Fixed 2019-02-11RHSA-2019:0303
Red Hat Enterprise Linux 7 Extrasdocker-2:1.13.1-91.git07f3374.el7Fixed 2019-02-11RHSA-2019:0304
Red Hat Enterprise Linux 8container-tools:rhel8-8000020190416221845.2ffa3d27Fixed 2019-05-07RHSA-2019:0975
Red Hat OpenShift Container Platform 3.4docker-2:1.12.6-79.git5680db5.el7Fixed 2019-02-26RHSA-2019:0408
Red Hat OpenShift Container Platform 3.5docker-2:1.12.6-79.git5680db5.el7Fixed 2019-02-26RHSA-2019:0408
Red Hat OpenShift Container Platform 3.6docker-2:1.12.6-79.git5680db5.el7Fixed 2019-02-26RHSA-2019:0408
Red Hat OpenShift Container Platform 3.7docker-2:1.12.6-79.git5680db5.el7Fixed 2019-02-26RHSA-2019:0408
Red Hat Enterprise Linux 7docker-latestWill not fix
Red Hat Enterprise Linux 8container-tools:1.0/runcNot affected
Red Hat Enterprise Linux Atomic Host 7dockerNot affected
Red Hat Enterprise Linux Atomic Host 7runcNot affected
Red Hat OpenShift Container Platform 3.9runcWill not fix
Red Hat OpenShift Container Platform 4runcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-5736.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON