# CVE-2019-19921: opencontainers runc contains procfs race condition with a shared volume mount

Source: https://junglewise.ai/threats/cve-2019-19921-opencontainers-runc-contains-procfs-race-condition-with-a-shared  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-05-27  
License: CC BY 4.0 with a link back

CVE-2019-19921 · Severity: medium · CVSS 5 · Published 2021-05-27

### 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](https://github.com/opencontainers/runc/issues/new).
* Email us at [dev@opencontainers.org](mailto:dev@opencontainers.org), or [security@opencontainers.org](mailto:security@opencontainers.org) if you think you've found a security bug.

Technologies: [github.com/opencontainers/runc (Go)](https://junglewise.ai/threats/technologies/github-com-opencontainers-runc). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2019-19921 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2019-19921 being exploited in the wild.

**How severe is CVE-2019-19921?** Medium severity, with a CVSS score of 5, published 27 May 2021.

**Which products and versions are affected?** github.com/opencontainers/runc (Go) < 1.0.0-rc9.0.20200122160610-2fc03cc11c77, SEMVER:introduced=0,fixed=1.0.0-rc9.0.20200122160610-2fc03cc11c77.

**Is there a fix for CVE-2019-19921?** Yes. github.com/opencontainers/runc (Go): upgrade to 1.0.0-rc9.0.20200122160610-2fc03cc11c77 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2019-19921?** Check whether you run github.com/opencontainers/runc (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/opencontainers/runc (Go): upgrade to 1.0.0-rc9.0.20200122160610-2fc03cc11c77 or later

  ```sh
  go get github.com/opencontainers/runc@v1.0.0-rc9.0.20200122160610-2fc03cc11c77
  ```


## Affected products

- github.com/opencontainers/runc (Go) < 1.0.0-rc9.0.20200122160610-2fc03cc11c77, SEMVER:introduced=0,fixed=1.0.0-rc9.0.20200122160610-2fc03cc11c77

## Identifiers

- CVE-2019-19921
- GHSA-fh74-hm69-rqjw
- GO-2021-0087

## Related threats

- [opencontainers runc symlink following in rootfs setup](https://junglewise.ai/threats/cve-2026-41579-opencontainers-runc-symlink-following-in-rootfs-setup)
- [runc container escape with malicious config due to /dev/console mount and related races](https://junglewise.ai/threats/cve-2025-52565-runc-container-escape-with-malicious-config-due-to-dev-console)
- [runc container escape and denial of service due to arbitrary write gadgets and procfs write redirects](https://junglewise.ai/threats/cve-2025-52881-runc-container-escape-and-denial-of-service-due-to-arbitrary)
- [GO-2025-4096 - Container escape via "masked path" abuse due to mount race conditions in github.com/opencontainers/runc](https://junglewise.ai/threats/cve-2025-31133-runc-multiple-container-escape-and-isolation-vulnerabilities)
- [Libcontainer is affected by capabilities elevation similar to GHSA-f3fp-gc8g-vw66](https://junglewise.ai/threats/cve-2025-27612-go-2025-3543-withdrawn-libcontainer-is-affected-by-capabilities)
