CVE-2021-30465
mount destinations can be swapped via symlink-exchange to cause mounts outside the rootfs
Record from NVD · Published May 19, 2021
runc before 1.0.0-rc95 allows a Container Filesystem Breakout via Directory Traversal. To exploit the vulnerability, an attacker must be able to create multiple containers with a fairly specific mount configuration. The problem occurs via a symlink-exchange attack that relies on a race condition.
EPSS 10.24% · 95.7th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/opencontainers/runc | Go Modules | 1.0.0-rc94 |
| github.com/opencontainers/runc/libcontainer | Go Modules | 1.0.0-rc95 |
| k3s | Alpine | 1.21.1.1-r0 |
| runc | Alpine | 1.0.0_rc95-r0 |
| runc | Arch Linux | 1.0.0rc95-1 |
| runc | linuxfoundation | 0.1.1 |
| runc | Ubuntu:18.04:LTS | 1.0.0~rc93-0ubuntu1~18.04.2 |
| runc | Ubuntu:Pro:16.04:LTS | 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | runc | 0, 1.0.0 |
| fedoraproject | fedora | 33, 34 |
Timeline
- May 19, 2021 CVE Published
- May 28, 2021 EPSS Score (30 in total, the first dated here)
- Apr 3, 2025 PoC Published (2 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 7, 2026 Distribution Patch (13 in total, the first dated here)
- Mar 7, 2026 Security Advisory (19 in total, the first dated here)
- Aug 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-30465
vulnetix vdb fixes CVE-2021-30465
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-30465/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html advisory
- https://github.com/opencontainers/runc/releases technical
- https://security.gentoo.org/glsa/202107-26 advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35ZW6NBZSBH5PWIT7JU4HXOXGFVDCOHH/ technical
- http://www.openwall.com/lists/oss-security/2021/05/19/2 mailing_list
- https://bugzilla.opensuse.org/show_bug.cgi?id=1185405 issue
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4HOARVIT47RULTTFWAU7XBG4WY6TDDHV/ technical
- https://security.netapp.com/advisory/ntap-20210708-0003/ advisory
- https://github.com/opencontainers/runc/commit/0ca91f44f1664da834bc61115a849b56d22f595f fix
- https://github.com/opencontainers/runc/security/advisories/GHSA-c3xm-pvg7-gh7r patch