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
    • 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-2025-31133

CVE-2025-31133: runc Information Disclosure Vulnerability

CVE-2025-31133 is an information disclosure vulnerability in Linuxfoundation runc that allows attackers to expose host information through bind-mount verification flaws. This article covers technical details, affected versions, and mitigation strategies.

Updated: March 12, 2026

CVE-2025-31133 Overview

CVE-2025-31133 is a container escape vulnerability in runc, the widely-used CLI tool for spawning and running containers according to the OCI specification. The vulnerability stems from insufficient verification that the source of bind-mounts (specifically the container's /dev/null) was actually a legitimate /dev/null inode when using it to mask paths. This flaw exposes multiple attack methods including an arbitrary mount gadget that can lead to host information disclosure, host denial of service, container escape, or bypassing of maskedPaths security controls.

Critical Impact

This vulnerability allows attackers to escape container isolation, potentially gaining access to the host system, disclosing sensitive host information, or causing denial of service conditions through exploitation of the bind-mount verification weakness.

Affected Products

  • Linux Foundation runc versions 1.2.7 and below
  • Linux Foundation runc versions 1.3.0-rc.1 through 1.3.1
  • Linux Foundation runc versions 1.4.0-rc.1 and 1.4.0-rc.2

Discovery Timeline

  • 2025-11-06 - CVE CVE-2025-31133 published to NVD
  • 2025-12-03 - Last updated in NVD database

Technical Details for CVE-2025-31133

Vulnerability Analysis

This vulnerability falls under the category of Symlink Attack (CWE-61: UNIX Symbolic Link Following). The flaw exists in runc's path masking functionality, which is designed to hide sensitive paths from containers by bind-mounting /dev/null over them. The vulnerable code failed to verify that the container's /dev/null was actually a legitimate null device inode before using it for masking operations.

The vulnerability enables two distinct attack vectors. First, an attacker can exploit the arbitrary mount gadget to mount arbitrary filesystems or access host paths that should be inaccessible from within the container. Second, the flaw allows bypassing of maskedPaths configurations, which are security controls intended to hide sensitive system paths from containerized processes.

Root Cause

The root cause lies in the maskPaths function within libcontainer/rootfs_linux.go. The original implementation relied on error handling (ENOTDIR) to determine whether the destination was a directory or file, rather than explicitly verifying the destination type. Additionally, the code did not verify that the /dev/null device file being used as the mount source was actually a legitimate null device, allowing an attacker to potentially substitute a malicious file.

Attack Vector

The attack requires local access with low privileges, though some user interaction is needed. An attacker with the ability to manipulate the container's filesystem before or during initialization could replace or manipulate the /dev/null device file. When runc performs path masking operations, it would use this manipulated file instead of the real null device, potentially allowing:

  1. Arbitrary file or directory mounting from the host into the container
  2. Disclosure of sensitive host system information
  3. Denial of service against the host system
  4. Complete container escape with potential host-level access
go
// Security patch showing proper destination type verification
// Source: https://github.com/opencontainers/runc/commit/5d7b2424072449872d1cd0c937f2ca25f418eb66

 			}
 			return fmt.Errorf("can't mask path %q: %w", path, err)
 		}
-
-		dstFd := filepath.Join(procSelfFd, strconv.Itoa(int(dstFh.Fd())))
-		err = mountViaFds("", devNullSrc, path, dstFd, "", unix.MS_BIND, "")
-		dstFh.Close()
+		st, err := dstFh.Stat()
 		if err != nil {
-			if !errors.Is(err, unix.ENOTDIR) {
-				return fmt.Errorf("can't mask path %q: %w", path, err)
-			}
+			dstFh.Close()
+			return fmt.Errorf("can't mask path %q: %w", path, err)
+		}
+		var dstType string
+		if st.IsDir() {
 			// Destination is a directory: bind mount a ro tmpfs over it.
-			err := mount("tmpfs", path, "tmpfs", unix.MS_RDONLY, label.FormatMountLabel("", mountLabel))
-			if err != nil {
-				return fmt.Errorf("can't mask dir %q: %w", path, err)
-			}
+			dstType = "dir"
+			err = mount("tmpfs", path, "tmpfs", unix.MS_RDONLY, label.FormatMountLabel("", mountLabel))
+		} else {
+			// Destination is a file: mount it to /dev/null.
+			dstType = "path"
+			dstFd := filepath.Join(procSelfFd, strconv.Itoa(int(dstFh.Fd())))
+			err = mountViaFds("", devNullSrc, path, dstFd, "", unix.MS_BIND, "")
+		}

Detection Methods for CVE-2025-31133

Indicators of Compromise

  • Unexpected bind mounts appearing on host systems that originate from container contexts
  • Anomalous access patterns to sensitive host paths from containerized processes
  • Modified or substituted /dev/null device files within container filesystems
  • Container processes accessing paths that should be blocked by maskedPaths configuration

Detection Strategies

  • Monitor for unusual mount operations during container initialization, particularly bind mounts involving /dev/null
  • Implement file integrity monitoring on container runtime binaries, specifically runc
  • Audit container configurations for maskedPaths and verify they are being honored
  • Deploy runtime security tools that can detect container escape attempts and host filesystem access

Monitoring Recommendations

  • Enable detailed logging for container runtime operations including mount syscalls
  • Configure alerts for any container process attempting to access host-sensitive directories
  • Monitor runc version information across your container infrastructure to identify vulnerable deployments
  • Implement behavioral analysis to detect containers performing atypical filesystem operations

How to Mitigate CVE-2025-31133

Immediate Actions Required

  • Upgrade runc to patched versions: 1.2.8, 1.3.3, or 1.4.0-rc.3 immediately
  • Audit all container hosts to identify running runc versions using runc --version
  • Review container orchestration platforms (Docker, Kubernetes, containerd) that bundle runc for updates
  • Restrict container capabilities and apply principle of least privilege to reduce attack surface

Patch Information

The vulnerability has been addressed in runc versions 1.2.8, 1.3.3, and 1.4.0-rc.3. Multiple commits were applied to fix the vulnerability, implementing proper verification of the /dev/null device and improving destination type checking in the path masking functionality. The patches are available via the GitHub Security Advisory GHSA-9493-h29p-rfm2. Key security commits include fixes in rootfs_linux.go and init_linux.go that add proper isDevNull and verifyDevNull functions.

Workarounds

  • Apply strict AppArmor or SELinux profiles to containers to limit filesystem access capabilities
  • Use user namespaces to reduce the impact of potential container escapes
  • Implement network segmentation to limit lateral movement if container escape occurs
  • Consider using gVisor or Kata Containers for workloads requiring stronger isolation guarantees
bash
# Verify runc version and upgrade if vulnerable
runc --version

# For Docker-based systems, update Docker which bundles runc
apt-get update && apt-get install docker-ce docker-ce-cli containerd.io

# For standalone runc installations
# Download patched version from GitHub releases
wget https://github.com/opencontainers/runc/releases/download/v1.2.8/runc.amd64
chmod +x runc.amd64
mv runc.amd64 /usr/local/sbin/runc

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLinuxfoundation Runc

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-61
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Commit Updates

  • GitHub Commit Modifications

  • GitHub Commit Fixes

  • GitHub Security Advisory GHSA-9493
  • Related CVEs
  • CVE-2023-27561: Runc Privilege Escalation Vulnerability
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