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-2021-21285

CVE-2021-21285: Docker Docker DOS Vulnerability

CVE-2021-21285 is a denial of service vulnerability in Docker Docker caused by malformed image manifests that crash the dockerd daemon. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-21285 Overview

CVE-2021-21285 is a Denial of Service vulnerability in Docker that allows an attacker to crash the dockerd daemon by pulling an intentionally malformed Docker image manifest. The vulnerability exists in versions prior to 19.03.15 and 20.10.3, where improper validation of layer digests in image manifests can cause the Docker daemon to crash during a pull operation.

Critical Impact

Successful exploitation of this vulnerability can cause the Docker daemon to crash, disrupting all running containers and container orchestration operations on the affected host.

Affected Products

  • Docker versions before 19.03.15
  • Docker versions 20.10.0 through 20.10.2
  • Debian Linux 10.0
  • NetApp E-Series SANtricity OS Controller

Discovery Timeline

  • February 2, 2021 - CVE-2021-21285 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-21285

Vulnerability Analysis

This vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-754 (Improper Check for Unusual or Exceptional Conditions). The root cause lies in the Docker engine's failure to properly validate layer digest values within image manifests before processing them.

When a user initiates a docker pull operation, the Docker daemon retrieves the image manifest from a registry. The manifest contains references to image layers via digest values. Prior to the security fix, the daemon did not validate these digest values, allowing malformed or invalid digests to be processed, which triggered a panic condition and crashed the daemon.

The attack requires user interaction—specifically, a user must be tricked into pulling a malicious image from an attacker-controlled or compromised registry. This makes the attack vector network-based but dependent on social engineering or supply chain compromise scenarios.

Root Cause

The vulnerability stems from missing input validation on layer digest values within the Docker image manifest parsing code. The distribution/pull_v2.go and builder/builder-next/adapters/containerimage/pull.go components lacked proper digest validation calls before processing layer information.

Attack Vector

An attacker can exploit this vulnerability by hosting a malicious Docker image with a crafted manifest containing invalid layer digests on a registry accessible to the target. When a victim attempts to pull this image, the invalid digest triggers an unhandled exception in the Docker daemon, causing it to crash.

go
// Vulnerable code path in distribution/pull_v2.go
// The blobSum was used without validation, allowing malformed digests

// to top-most, so that the downloads slice gets ordered correctly.
for i := len(verifiedManifest.FSLayers) - 1; i >= 0; i-- {
	blobSum := verifiedManifest.FSLayers[i].BlobSum
	if err = blobSum.Validate(); err != nil {
		return "", "", errors.Wrapf(err, "could not validate layer digest %q", blobSum)
	}

	var throwAway struct {
		ThrowAway bool `json:"throwaway,omitempty"`

Source: GitHub Commit 8d31795

go
// Security patch in builder/builder-next/adapters/containerimage/pull.go
// Added digest validation before processing layers

 	layers := make([]xfer.DownloadDescriptor, 0, len(mfst.Layers))
 
 	for i, desc := range mfst.Layers {
		if err := desc.Digest.Validate(); err != nil {
			return nil, errors.Wrap(err, "layer digest could not be validated")
		}
 		ongoing.add(desc)
 		layers = append(layers, &layerDescriptor{
 			desc:    desc,

Source: GitHub Commit 8d31795

Detection Methods for CVE-2021-21285

Indicators of Compromise

  • Unexpected Docker daemon crashes or restarts during image pull operations
  • Error logs showing digest validation failures or panic messages in Docker daemon logs
  • Evidence of connections to untrusted or suspicious container registries
  • Repeated daemon restarts correlating with specific image pull attempts

Detection Strategies

  • Monitor Docker daemon logs for panic messages or unexpected terminations during pull operations
  • Implement alerting on dockerd process crashes or automatic restarts via systemd
  • Track image pull operations from non-standard or untrusted registries
  • Use container security scanning tools to validate image manifests before deployment

Monitoring Recommendations

  • Configure centralized logging for Docker daemon events and correlate with security information and event management (SIEM) systems
  • Set up process monitoring alerts for the dockerd service to detect unexpected terminations
  • Implement registry allowlisting to restrict image pulls to trusted sources only
  • Monitor for unusual patterns in Docker API calls that may indicate exploitation attempts

How to Mitigate CVE-2021-21285

Immediate Actions Required

  • Upgrade Docker to version 19.03.15 or 20.10.3 or later immediately
  • Restrict Docker image pulls to trusted and verified registries only
  • Review recent image pull history for any suspicious or unknown images
  • Implement network-level controls to limit access to untrusted registries

Patch Information

Docker has released patched versions that address this vulnerability. The fix adds proper digest validation before processing layer information in image manifests. Organizations should upgrade to the following versions or later:

  • Docker 19.03.15 - GitHub Release v19.03.15
  • Docker 20.10.3 - GitHub Release v20.10.3

Additional vendor advisories are available:

  • Docker Release Notes 20.10.3
  • GitHub Security Advisory GHSA-6fj5-m822-rqx8
  • Debian Security Advisory DSA-4865
  • Gentoo GLSA 2021-07-23

Workarounds

  • Implement strict registry allowlists using Docker daemon configuration to prevent pulls from untrusted sources
  • Use a trusted private registry as a proxy for all external image pulls
  • Deploy network segmentation to isolate Docker hosts from direct internet access to public registries
  • Implement image scanning and validation pipelines before allowing images into the environment
bash
# Configuration example - Restrict Docker to trusted registries only
# Add to /etc/docker/daemon.json
{
  "allow-nondistributable-artifacts": [],
  "insecure-registries": [],
  "registry-mirrors": ["https://your-trusted-registry.example.com"]
}

# Restart Docker daemon after configuration
sudo systemctl restart docker

# Verify Docker version after upgrade
docker version --format '{{.Server.Version}}'

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDocker

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability1.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400

  • CWE-754
  • Technical References
  • GitHub Release v19.03.15

  • GitHub Release v20.10.3

  • GitHub Security Advisory GHSA-6fj5-m822-rqx8

  • NetApp Security Advisory NTAP-20210226-0005

  • Debian Security Advisory DSA-4865
  • Vendor Resources
  • Docker Release Notes 20.10.3

  • GitHub Commit 8d31795

  • Gentoo GLSA 2021-07-23
  • Related CVEs
  • CVE-2026-5741: Docker-MCP-Server RCE Vulnerability

  • CVE-2025-15558: Docker CLI Privilege Escalation Vulnerability

  • CVE-2026-28400: Docker Model Runner Privilege Escalation

  • CVE-2026-2664: Docker Desktop Privilege Escalation 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