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-2020-15257

CVE-2020-15257: Containerd Privilege Escalation Vulnerability

CVE-2020-15257 is a privilege escalation vulnerability in containerd that exposes the shim API to host network containers, allowing elevated privileges. This article covers technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-15257 Overview

CVE-2020-15257 is a privilege escalation vulnerability in containerd, an industry-standard container runtime available as a daemon for Linux and Windows. The vulnerability stems from improper exposure of the containerd-shim API to host network containers, allowing malicious containers to execute new processes with elevated privileges.

Critical Impact

Malicious containers running in the same network namespace as the shim with an effective UID of 0 can cause new processes to be run with elevated privileges, potentially leading to container escape and host compromise.

Affected Products

  • Linux Foundation containerd versions before 1.3.9
  • Linux Foundation containerd versions before 1.4.3
  • Fedora 33
  • Debian Linux 10.0

Discovery Timeline

  • 2020-12-01 - CVE-2020-15257 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-15257

Vulnerability Analysis

The vulnerability exists in the containerd-shim API's access control mechanism. While the shim's API socket correctly verifies that connecting processes have an effective UID of 0, it fails to implement additional access restrictions to the abstract Unix domain socket. This insufficient access control allows containers sharing the same network namespace as the shim to interact with the API despite having otherwise reduced privileges.

The attack surface is particularly concerning in configurations where containers run with --net=host (Docker) or hostNetwork: true (Kubernetes), as these settings place containers in the same network namespace as the containerd-shim. The CWE-669 (Incorrect Resource Transfer Between Spheres) classification highlights that the vulnerability involves improper resource access boundaries between the container and host environments.

Root Cause

The root cause is the use of abstract Unix domain sockets for the containerd-shim API without proper namespace isolation. Abstract sockets in Linux are accessible to any process in the same network namespace, regardless of other containerization mechanisms. The access control only checked for UID 0 but did not verify that the connecting process was actually authorized to communicate with the shim.

Attack Vector

The attack requires local access and involves a container configured with host network namespace access running as root (UID 0). An attacker controlling such a container can:

  1. Connect to the containerd-shim's abstract Unix domain socket
  2. Leverage the shim API to spawn new processes with elevated privileges
  3. Potentially escape the container's isolation boundaries

The following patch shows the fix applied to address this vulnerability, changing from abstract socket paths to filesystem-based socket paths:

go
 func init() {
 	flag.BoolVar(&debugFlag, "debug", false, "enable debug output in logs")
 	flag.StringVar(&namespaceFlag, "namespace", "", "namespace that owns the shim")
-	flag.StringVar(&socketFlag, "socket", "", "abstract socket path to serve")
+	flag.StringVar(&socketFlag, "socket", "", "socket path to serve")
 	flag.StringVar(&addressFlag, "address", "", "grpc address back to main containerd")
 	flag.StringVar(&workdirFlag, "workdir", "", "path used to storge large temporary data")
 	flag.StringVar(&runtimeRootFlag, "runtime-root", process.RuncRoot, "root directory for the runtime")

Source: GitHub Commit Details

Detection Methods for CVE-2020-15257

Indicators of Compromise

  • Unexpected processes spawned from containers running with host network namespace
  • Unauthorized connections to containerd-shim Unix domain sockets from container processes
  • Evidence of privilege escalation attempts within container environments

Detection Strategies

  • Monitor for containers running with --net=host or hostNetwork: true configurations, especially those running as root
  • Audit containerd-shim socket activity for anomalous connection patterns
  • Implement runtime security monitoring to detect unauthorized process creation from container contexts
  • Review container orchestration configurations for unnecessary host namespace sharing

Monitoring Recommendations

  • Enable containerd debug logging to capture shim API access attempts
  • Deploy container runtime security solutions to monitor for privilege escalation behaviors
  • Implement network namespace auditing to identify containers with excessive host access
  • Configure alerts for containers attempting to access abstract Unix domain sockets

How to Mitigate CVE-2020-15257

Immediate Actions Required

  • Upgrade containerd to version 1.3.9 or 1.4.3 or later immediately
  • Stop and restart all containers that were started with vulnerable containerd-shim versions, as running containers remain vulnerable even after upgrading
  • Review and remove unnecessary --net=host or hostNetwork: true configurations from container deployments
  • Ensure containers run with non-zero UIDs where possible

Patch Information

The vulnerability has been fixed in containerd versions 1.3.9 and 1.4.3. The fix changes the shim API socket from an abstract Unix domain socket to a filesystem-based socket, which provides proper isolation through filesystem permissions. Security advisories and patches are available through GitHub Security Advisory GHSA-36xw-fx78-c5r4 and GitHub Release v1.4.3. Distribution-specific packages are available via Debian Security Advisory DSA-4865 and Fedora Package Announcement.

Workarounds

  • Avoid running containers with host network namespace access (--net=host or hostNetwork: true)
  • Ensure containers do not run with an effective UID of 0 where possible
  • Implement AppArmor policies to deny access to abstract sockets by adding deny unix addr=@**, to container profiles
  • Use isolated namespaces and reduced privilege sets for all containers
bash
# AppArmor configuration to deny abstract socket access
# Add this line to your AppArmor profile for containers
deny unix addr=@**,

# Example: Run containers without host network and as non-root
docker run --net=bridge --user 1000:1000 your-image

# Kubernetes: Ensure hostNetwork is false and runAsNonRoot is true
# In your pod specification:
# spec:
#   hostNetwork: false
#   securityContext:
#     runAsNonRoot: true
#     runAsUser: 1000

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechContainerd

  • SeverityMEDIUM

  • CVSS Score5.2

  • EPSS Probability12.00%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-669
  • Technical References
  • GitHub Release v1.4.3

  • Fedora Package Announcement

  • Gentoo GLSA 2021-05-33

  • Debian Security Advisory DSA-4865
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory GHSA-36xw-fx78-c5r4
  • Related CVEs
  • CVE-2023-25173: Containerd Privilege Escalation Vulnerability

  • CVE-2025-47291: Containerd CRI DoS Vulnerability

  • CVE-2022-31030: Containerd CRI ExecSync DoS Vulnerability

  • CVE-2021-21334: Containerd Information Disclosure 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