Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/opencontainers/runc
  4. ›
  5. CVE-2021-30465

CVE-2021-30465: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

May 25, 2021 (updated July 13, 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.

References

  • www.openwall.com/lists/oss-security/2021/05/19/2
  • bugzilla.opensuse.org/show_bug.cgi?id=1185405
  • github.com/advisories/GHSA-c3xm-pvg7-gh7r
  • github.com/opencontainers/runc/commit/0ca91f44f1664da834bc61115a849b56d22f595f
  • github.com/opencontainers/runc/releases
  • github.com/opencontainers/runc/security/advisories/GHSA-c3xm-pvg7-gh7r
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/35ZW6NBZSBH5PWIT7JU4HXOXGFVDCOHH/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4HOARVIT47RULTTFWAU7XBG4WY6TDDHV/
  • nvd.nist.gov/vuln/detail/CVE-2021-30465
  • security.netapp.com/advisory/ntap-20210708-0003/

Code Behaviors & Features

Detect and mitigate CVE-2021-30465 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.0.0-rc94

Fixed versions

  • 1.0.0-rc95

Solution

Upgrade to version 1.0.0-rc95 or above. *Note*: 1.0.0-rc95 may be an unstable version. Use caution.

Impact 8.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/opencontainers/runc/CVE-2021-30465.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.