Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-21334

CVE-2021-21334: Containerd Information Disclosure Flaw

CVE-2021-21334 is an information disclosure vulnerability in Linuxfoundation Containerd that exposes sensitive environment variables between containers sharing the same image. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 25, 2026

CVE-2021-21334 Overview

CVE-2021-21334 is an information disclosure vulnerability in containerd, an industry-standard container runtime. The vulnerability affects containerd's Container Runtime Interface (CRI) implementation, where containers launched through the CRI service that share the same image may receive incorrect environment variables, including values defined for other containers. This flaw can lead to unintentional sharing of sensitive information between containers with different security contexts.

Critical Impact

Containers sharing the same image may leak sensitive environment variables (credentials, API keys, secrets) to other containers, potentially compromising multi-tenant Kubernetes deployments.

Affected Products

  • Linux Foundation containerd versions prior to 1.3.10
  • Linux Foundation containerd versions 1.4.x prior to 1.4.4
  • Fedora Project Fedora 33 and 34

Discovery Timeline

  • 2021-03-10 - CVE-2021-21334 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-21334

Vulnerability Analysis

This vulnerability exists in containerd's CRI implementation used by Kubernetes, crictl, and other container clients that utilize the containerd CRI service. The flaw occurs when multiple containers are launched from the same container image in rapid succession. Due to a race condition in how environment variables are handled during container creation, containers may inadvertently receive environment variables intended for other containers.

The vulnerability specifically affects the container creation process within the CRI layer. When containers with different security contexts share the same base image and are started in quick succession, the environment variable isolation mechanism fails to properly segregate the configuration intended for each container. This can result in sensitive information such as database credentials, API keys, authentication tokens, and other secrets being exposed to unintended containers.

Root Cause

The root cause of CVE-2021-21334 is improper resource isolation (CWE-668: Exposure of Resource to Wrong Sphere) in the CRI container creation workflow. The environment variable assignment logic contained a race condition that allowed environment configurations to bleed between containers when they were instantiated from the same image within a short time window. The patch introduced proper isolation boundaries to ensure each container's environment variables are correctly scoped during the creation process.

Attack Vector

The vulnerability is exploitable over the network in scenarios where an attacker can influence container scheduling on a shared Kubernetes cluster. The attack requires the following conditions:

  1. Multiple containers launched through containerd's CRI implementation
  2. Containers sharing the same base image
  3. Different environment variables configured for different containers
  4. Rapid succession of container launches

An attacker with the ability to schedule pods on a Kubernetes cluster could potentially craft malicious pods to intercept environment variables from other tenants' containers, leading to credential theft or information disclosure.

toml
# Release notes from containerd v1.4.4 patch
# Source: https://github.com/containerd/containerd/commit/05f951a3781f4f2c1911b05e61c160e9c30eaa8e

# commit to be tagged for new release
commit = "HEAD"

project_name = "containerd"
github_repo = "containerd/containerd"
match_deps = "^github.com/(containerd/[a-zA-Z0-9-]+)$"

# previous release
previous = "v1.4.3"

pre_release = false

preface = """\
The fourth patch release for `containerd` 1.4 contains a fix for CVE-2021-21334
along with various other minor issues.
See [GHSA-36xw-fx78-c5r4](https://github.com/containerd/containerd/security/advisories/GHSA-36xw-fx78-c5r4)
for more details related to CVE-2021-21334.

### Notable Updates
* **Fix container create in CRI to prevent possible environment variable leak between containers** [#1628](https://github.com/containerd/cri/pull/1628)
* **Update shim server to return grpc NotFound error** [#4872](https://github.com/containerd/containerd/pull/4872)
* **Add bounds on max `oom_score_adj` value for shim's AdjustOOMScore** [#4874](https://github.com/containerd/containerd/pull/4874)
* **Update task manager to use fresh context when calling shim shutdown** [#4929](https://github.com/containerd/containerd/pull/4929)
* **Update Docker resolver to avoid possible concurrent map access panic** [#4941](https://github.com/containerd/containerd/pull/4941)
* **Update shim's log file open flags to avoid containerd hang on syscall open** [#4971](https://github.com/containerd/containerd/pull/4971)
* **Fix incorrect usage calculation** [#5019](https://github.com/containerd/containerd/pull/5019)

"""

Source: GitHub Commit 05f951a

Detection Methods for CVE-2021-21334

Indicators of Compromise

  • Unexpected environment variables appearing in container logs or process listings
  • Containers accessing credentials or secrets they should not have access to
  • Anomalous authentication attempts using credentials belonging to other services
  • Cross-container data access patterns in multi-tenant environments

Detection Strategies

  • Monitor container environment variable configurations for unexpected values using Kubernetes admission controllers
  • Implement audit logging for all container creation events through the CRI interface
  • Use SentinelOne Singularity™ for Cloud to detect anomalous container behavior and environment variable leakage
  • Deploy runtime security monitoring to identify containers accessing resources outside their intended scope

Monitoring Recommendations

  • Enable containerd debug logging to capture detailed container creation events
  • Implement secret rotation policies to limit exposure window if leakage occurs
  • Monitor Kubernetes audit logs for rapid container creation patterns from the same image
  • Configure alerting for containers accessing secrets or credentials outside their namespace

How to Mitigate CVE-2021-21334

Immediate Actions Required

  • Upgrade containerd to version 1.3.10 or 1.4.4 immediately
  • Audit all containers for potential environment variable leakage
  • Rotate any secrets that may have been exposed in affected environments
  • Review Kubernetes pod scheduling to identify potentially affected workloads

Patch Information

The containerd project has released patched versions that address this vulnerability. Users should upgrade to containerd version 1.3.10 or 1.4.4 depending on their current version branch. The fix is documented in GitHub Security Advisory GHSA-6g2q-w5j3-fwh4 and implemented in commit 05f951a. Fedora users should apply updates from the Fedora Package Announcements.

Workarounds

  • Avoid launching multiple containers from the same image with different environment variables in rapid succession
  • Use Kubernetes secrets mounted as files instead of environment variables for sensitive data
  • Implement network segmentation to limit blast radius if credential leakage occurs
  • Consider using unique images per security context to eliminate the shared image attack vector
bash
# Verify containerd version and upgrade if necessary
containerd --version

# For systems using apt (Debian/Ubuntu)
sudo apt update
sudo apt install containerd.io

# For systems using yum (RHEL/CentOS/Fedora)
sudo dnf update containerd

# Verify the patched version is installed
containerd --version
# Expected: containerd containerd.io 1.4.4 or 1.3.10+

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechContainerd

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.36%

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

  • GitHub Release v1.4.4

  • GitHub Security Advisory GHSA-6g2q-w5j3-fwh4

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 2021-05-33
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2020-15157: Containerd Information Disclosure Flaw

  • CVE-2025-47291: Containerd CRI DoS Vulnerability

  • CVE-2023-25173: Containerd Privilege Escalation Vulnerability

  • CVE-2022-31030: Containerd CRI ExecSync DoS Vulnerability
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