CVE-2019-19921: Race Condition

Published Dec 21, 2019
·
Updated

Impact By crafting a malicious root filesystem (with /proc being a symlink to a directory which was inside a volume shared with another running container), an attacker in control of both containers can trick runc into not correctly configuring the container's security labels and not correctly masking paths inside /proc which contain potentially-sensitive information about the host (or even allow for direct attacks against the host).

In order to exploit this bug, an untrusted user must be able to spawn custom containers with custom mount configurations (such that a volume is shared between two containers). It should be noted that we consider this to be a fairly high level of access for an untrusted user -- and we do not recommend allowing completely untrusted users to have such degrees of access without further restrictions.

Specific Go Package Affected github.com/opencontainers/runc/libcontainer

Patches This vulnerability has been fixed in 1.0.0-rc10. It should be noted that the current fix is effectively a hot-fix, and there are known ways for it to be worked around (such as making the entire root filesystem a shared volume controlled by another container). We recommend that users review their access policies to ensure that untrusted users do not have such high levels of controls over container mount configuration.

Workarounds If you are not providing the ability for untrusted users to configure mountpoints for runc (or through a higher-level tool such as docker run -v) then you are not vulnerable to this issue. This exploit requires fairly complicated levels of access (which are available for some public clouds but are not necessarily available for all deployments).

Additionally, it appears as though it is not possible to exploit this vulnerability through Docker (due to the order of mounts Docker generates). However you should not depend on this, as it may be possible to work around this roadblock.

Credits This vulnerability was discovered by Cure53, as part of a third-party security audit.

For more information If you have any questions or comments about this advisory: Open an issue. Email us at dev@opencontainers.org, or security@opencontainers.org if you think you've found a security bug.

Other sources

A flaw was found in runc. An attacker who controls the container image for two containers that share a volume can race volume mounts during container initialization, by adding a symlink to the rootfs that points to a directory on the volume. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

An attacker who controls the container image for two containers that share a volume can race volume mounts during container initialization, by adding a symlink to the rootfs that points to a directory on the volume.

Upstream Issue:

https://github.com/opencontainers/runc/issues/2197

Red Hat

runc through 1.0.0-rc9 has Incorrect Access Control leading to Escalation of Privileges, related to libcontainer/rootfslinux.go. To exploit this, an attacker must be able to spawn two containers with custom volume-mount configurations, and be able to run custom images. (This vulnerability does not affect Docker due to an implementation detail that happens to block the attack.)

Affected Software

24 affected componentsFixes available
redhat/runc<0:1.0.0-66.rc8.el7_7
0:1.0.0-66.rc8.el7_7
redhat/runc<0:1.0.0-63.rc8.rhaos4.1.git3cbe540.el8_0
0:1.0.0-63.rc8.rhaos4.1.git3cbe540.el8_0
redhat/runc<0:1.0.0-63.rc10.rhaos4.2.gitdc9208a.el8
0:1.0.0-63.rc10.rhaos4.2.gitdc9208a.el8
redhat/runc<0:1.0.0-66.rc10.rhaos4.3.el7_8
0:1.0.0-66.rc10.rhaos4.3.el7_8
redhat/runc<1.0.0
1.0.0
go/github.com/opencontainers/runc<1.0.0-rc9.0.20200122160610-2fc03cc11c77
1.0.0-rc9.0.20200122160610-2fc03cc11c77
linuxfoundation Runc<=0.1.1
linuxfoundation Runc=1.0.0-rc1
linuxfoundation Runc=1.0.0-rc2
linuxfoundation Runc=1.0.0-rc3
linuxfoundation Runc=1.0.0-rc4
linuxfoundation Runc=1.0.0-rc5
linuxfoundation Runc=1.0.0-rc6
linuxfoundation Runc=1.0.0-rc7
linuxfoundation Runc=1.0.0-rc8
linuxfoundation Runc=1.0.0-rc9
Debian Debian Linux=9.0
Debian Debian Linux=10.0
openSUSE Leap=15.1
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.10
redhat OpenShift Container Platform=4.1
redhat OpenShift Container Platform=4.2
debian/runc
1.0.0~rc93+ds1-5+deb11u51.0.0~rc93+ds1-5+deb11u31.1.5+ds1-1+deb12u11.1.15+ds1-21.3.3+ds1-2

Event History

Dec 21, 2019
CVE Published
12:00 AM
Feb 12, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
May 27, 2021
Advisory Published
via GitHub·06:41 PM
Dec 2, 2025
Data Sourced
via Debian·05:37 PM
DescriptionAffected Software
Dec 4, 2025
Data Sourced
via Ubuntu·05:39 PM
RemedyDescriptionSeverityAffected Software
Feb 21, 2026
Data Sourced
via Launchpad·12:02 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2019-19921?

CVE-2019-19921 is a vulnerability found in runc, where an attacker who controls the container image for two containers that share a volume can trick runc into not correctly configuring the container's security labels.

2

What is the impact of CVE-2019-19921?

The impact of CVE-2019-19921 is that an attacker in control of both containers can exploit the vulnerability to bypass security measures and potentially gain unauthorized access or manipulate container processes.

3

What is the severity of CVE-2019-19921?

CVE-2019-19921 has a severity level of high.

4

How can I fix CVE-2019-19921?

To fix CVE-2019-19921, it is recommended to update runc to version 1.0.0-66.rc8.el7_7 or the appropriate patched version provided by your OS or distribution.

5

Where can I find more information about CVE-2019-19921?

You can find more information about CVE-2019-19921 on CVE.org, NVD, Bugzilla Red Hat, and the Red Hat Errata page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203