The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-30465

CVE-2021-30465: runc Path Traversal Vulnerability

CVE-2021-30465 is a path traversal flaw in runc that enables container filesystem breakout through symlink-exchange attacks. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-30465 Overview

CVE-2021-30465 is a container filesystem breakout vulnerability affecting runc before version 1.0.0-rc95. This vulnerability enables directory traversal attacks through a symlink-exchange race condition, allowing attackers to escape container isolation and access the host filesystem. The exploitation requires the ability to create multiple containers with specific mount configurations, making it particularly relevant in multi-tenant container environments.

Critical Impact

This vulnerability allows container escape through a race condition during mount operations, potentially granting attackers access to the host filesystem and compromising container isolation boundaries.

Affected Products

  • Linux Foundation runc versions prior to 1.0.0-rc95
  • Linux Foundation runc 1.0.0-rc1 through 1.0.0-rc94
  • Fedora Project Fedora 33 and 34

Discovery Timeline

  • May 27, 2021 - CVE-2021-30465 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-30465

Vulnerability Analysis

CVE-2021-30465 represents a Time-of-Check Time-of-Use (TOCTOU) race condition vulnerability in the runc container runtime. The vulnerability exists within the mount destination validation logic in libcontainer/container_linux.go. During container creation, runc processes mount points without adequate protection against symlink manipulation between the validation and actual mount operations.

The attack exploits the window between when runc validates a mount destination path and when it actually performs the mount. An attacker with control over multiple containers can manipulate symbolic links during this race window, causing runc to mount host filesystem paths instead of the intended container-isolated paths. This effectively breaks the container filesystem isolation that is fundamental to container security.

The vulnerability has been documented in the GitHub Security Advisory GHSA-c3xm-pvg7-gh7r and discussed in detail on the Openwall OSS Security mailing list.

Root Cause

The root cause lies in the lack of atomic verification for mount destination paths within runc's mount handling code. The original implementation set m.Destination = dest without ensuring the path remained valid and unmodified throughout the mount operation. This gap allowed symbolic link manipulation between path validation and the actual MkdirAll call, creating an exploitable race condition.

The vulnerability was addressed by implementing secure path joining using the filepath-securejoin library, which provides protection against symlink-based path manipulation attacks.

Attack Vector

The attack requires the attacker to have the ability to create multiple containers with specific mount configurations. The attacker creates a malicious container configuration that exploits the race condition through symlink exchange:

  1. The attacker prepares a container with a mount destination that appears valid during initial validation
  2. A second container or process rapidly swaps a symlink at the mount destination path
  3. When runc proceeds with the mount operation, it follows the swapped symlink to an attacker-controlled location on the host filesystem
  4. The container gains access to host filesystem paths, breaking isolation

The security patch implemented mount destination validation with secure path resolution:

go
import (
	"encoding/binary"
	"encoding/json"
	"fmt"
	"io"
	"os"
	"path/filepath"
	"strconv"
	"strings"
	"unsafe"

	"github.com/cyphar/filepath-securejoin"
	"golang.org/x/sys/unix"
)

Source: GitHub runc Commit Update

The fix also removed the vulnerable destination assignment pattern:

go
		if err := checkProcMount(c.config.Rootfs, dest, ""); err != nil {
			return err
		}
-		m.Destination = dest
		if err := os.MkdirAll(dest, 0755); err != nil {
			return err
		}

Source: GitHub runc Commit Update

Detection Methods for CVE-2021-30465

Indicators of Compromise

  • Unusual container mount configurations with unexpected or suspicious destination paths
  • Rapid creation and deletion of containers with specific mount specifications
  • Symlink creation or modification activity within container namespaces
  • Access to host filesystem paths from within container processes
  • Evidence of race condition exploitation through rapid file system operations

Detection Strategies

  • Monitor container runtime logs for unusual mount operations or mount-related errors
  • Implement file integrity monitoring on critical host filesystem paths that should not be accessed by containers
  • Deploy runtime security tools that detect symlink manipulation attempts during container creation
  • Audit container configurations for suspicious or overly permissive mount specifications

Monitoring Recommendations

  • Enable detailed logging for runc and container runtime operations
  • Monitor for unexpected process access to host filesystem paths from container contexts
  • Implement alerting for rapid container creation patterns that may indicate exploitation attempts
  • Review container orchestration logs for unusual mount configuration requests

How to Mitigate CVE-2021-30465

Immediate Actions Required

  • Upgrade runc to version 1.0.0-rc95 or later immediately
  • Review and audit existing container configurations for suspicious mount specifications
  • Implement network segmentation and access controls to limit potential attackers' ability to create containers
  • Enable enhanced container runtime monitoring and logging

Patch Information

The vulnerability is fixed in runc version 1.0.0-rc95. The patch introduces the filepath-securejoin library for secure path resolution and removes the vulnerable destination assignment pattern that enabled symlink manipulation. The fix is available in the GitHub runc Commit. Additional distribution-specific patches are available through Fedora, Gentoo, and Debian.

Workarounds

  • Restrict container creation privileges to trusted users and workloads only
  • Implement Pod Security Policies or equivalent admission controls in Kubernetes to limit mount capabilities
  • Use SELinux or AppArmor policies to restrict container filesystem access
  • Monitor and audit container runtime activity for anomalous behavior
bash
# Verify runc version and update if vulnerable
runc --version
# Expected output should show version 1.0.0-rc95 or higher

# Update runc on systems using package managers
# For Fedora:
dnf update runc

# For Debian/Ubuntu:
apt-get update && apt-get upgrade runc

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechRunc

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability1.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-362
  • Technical References
  • Openwall OSS Security Post

  • OpenSUSE Bug Report #1185405

  • GitHub runc Release Notes

  • Debian LTS Announcement March 2023

  • Fedora Package Announcement Archive

  • Fedora Package Update Notification

  • Gentoo GLSA 2021-07-26

  • NetApp Security Advisory NTAP-20210708-0003
  • Vendor Resources
  • GitHub runc Commit Update

  • GitHub Security Advisory GHSA-c3xm-pvg7-gh7r
  • Related CVEs
  • CVE-2025-52565: Linux Foundation runc DoS Vulnerability

  • CVE-2025-52881: Runc Race Condition Vulnerability

  • CVE-2024-45310: Linuxfoundation Runc Race Condition Flaw

  • CVE-2023-28642: Linuxfoundation Runc Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English