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-2024-24557

CVE-2024-24557: Moby Cache Poisoning Vulnerability

CVE-2024-24557 is a cache poisoning vulnerability in Mobyproject Moby's classic builder that allows attackers to inject malicious cache entries. This article covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-24557 Overview

CVE-2024-24557 is a cache poisoning vulnerability in Moby, the open-source project created by Docker to enable software containerization. The classic builder cache system is susceptible to cache poisoning attacks when images are built FROM scratch. Additionally, changes to certain instructions—most critically HEALTHCHECK and ONBUILD—fail to trigger a cache miss, allowing attackers to inject malicious content into the build process.

An attacker with knowledge of a target's Dockerfile could poison their cache by tricking them into pulling a specially crafted image that would be incorrectly recognized as a valid cache candidate for certain build steps. This vulnerability enables potential supply chain attacks against containerized applications.

Critical Impact

Attackers can poison Docker build caches to inject malicious code into container images, potentially compromising entire software supply chains and production environments.

Affected Products

  • Moby versions prior to 24.0.9
  • Moby versions 25.0.0 to 25.0.1
  • Docker 23.0+ users who explicitly disabled BuildKit (DOCKER_BUILDKIT=0)

Discovery Timeline

  • 2024-02-01 - CVE-2024-24557 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-24557

Vulnerability Analysis

This vulnerability affects the classic builder component in Moby/Docker, specifically the cache validation mechanism used during image builds. The flaw exists in how the builder determines cache validity for build layers, failing to properly validate certain instruction changes that should invalidate cached layers.

The vulnerability is classified under CWE-345 (Insufficient Verification of Data Authenticity) and CWE-346 (Origin Validation Error), indicating fundamental issues in how the build system authenticates and validates cached content origins.

Users on version 23.0 and later are affected only if they explicitly opted out of BuildKit by setting the DOCKER_BUILDKIT=0 environment variable or by directly using the /build API endpoint. All users on versions older than 23.0 are potentially impacted, as the classic builder is the default.

Root Cause

The root cause lies in the classic builder's insufficient verification of image authenticity and cache candidate validation. When building images FROM scratch, the cache system fails to properly verify the origin and integrity of cached layers. Furthermore, specific Dockerfile instructions (HEALTHCHECK and ONBUILD) do not properly invalidate the cache when modified, allowing attackers to substitute malicious cached layers.

The ImageBuild function from github.com/docker/docker/client and the /build API endpoint are both affected as they use the classic builder by default.

Attack Vector

The attack requires local access and user interaction—specifically, the victim must pull a malicious image crafted by the attacker. The attacker must have prior knowledge of the target's Dockerfile to create a poisoned image that will be accepted as a valid cache candidate.

The attack flow involves:

  1. Attacker analyzes target's Dockerfile
  2. Attacker creates a malicious image designed to match cache criteria
  3. Victim pulls the attacker's image (via deception or compromised registry)
  4. During subsequent builds, the poisoned cache is used instead of legitimate layers
go
// Security patch adding OCI image spec import for improved validation
// Source: https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae

 	"github.com/docker/docker/image"
 	"github.com/docker/docker/layer"
 	"github.com/opencontainers/go-digest"
+	ocispec "github.com/opencontainers/image-spec/specs-go/v1"
 )

 const (

The patch introduces the OCI image specification (ocispec) to improve validation of image origins and authenticity during cache operations.

Detection Methods for CVE-2024-24557

Indicators of Compromise

  • Unexpected images appearing in local Docker image cache without explicit pull commands
  • Build logs showing cache hits for layers that should have been rebuilt
  • Changes to HEALTHCHECK or ONBUILD instructions not triggering rebuilds
  • Anomalous network connections during image pull operations

Detection Strategies

  • Audit Docker build logs for unexpected cache hit patterns on HEALTHCHECK and ONBUILD layers
  • Monitor for use of the classic builder via DOCKER_BUILDKIT=0 environment variable in build pipelines
  • Implement image signing and verification using Docker Content Trust or Sigstore
  • Review /build API endpoint usage and ensure BuildKit is enabled where supported

Monitoring Recommendations

  • Enable verbose logging for Docker daemon to capture detailed build cache operations
  • Monitor container registry activity for unauthorized or suspicious image pushes
  • Implement runtime security monitoring for containers built from potentially compromised images
  • Track environment variable configurations across CI/CD pipelines for DOCKER_BUILDKIT=0 usage

How to Mitigate CVE-2024-24557

Immediate Actions Required

  • Upgrade to Moby/Docker version 24.0.9 or 25.0.2 immediately
  • Enable BuildKit by ensuring DOCKER_BUILDKIT=1 is set in build environments
  • Audit existing container images for potential compromise
  • Review and secure image pull sources and registry configurations

Patch Information

Patches addressing this vulnerability are included in Moby releases 24.0.9 and 25.0.2. The fix improves cache validation by incorporating OCI image specification standards for better origin verification. Apply the patch by upgrading Docker/Moby to the patched versions.

For detailed patch information, see the GitHub Security Advisory and the commit implementing the fix.

Workarounds

  • Enable BuildKit explicitly by setting DOCKER_BUILDKIT=1 in your environment
  • Use --no-cache flag during builds to bypass potentially poisoned cache
  • Avoid pulling untrusted or unverified images before building
  • Implement Docker Content Trust for image signature verification
bash
# Configuration example - Enable BuildKit and disable cache for secure builds
export DOCKER_BUILDKIT=1

# Build with no cache to avoid potential cache poisoning
docker build --no-cache -t myapp:latest .

# Enable Docker Content Trust for image verification
export DOCKER_CONTENT_TRUST=1

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechMoby

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.07%

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

  • CWE-346
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2023-28842: Mobyproject Moby Encryption Vulnerability

  • CVE-2026-34040: Moby Authorization Bypass Vulnerability

  • CVE-2026-33997: Moby Privilege Escalation Vulnerability

  • CVE-2024-29018: Moby Information Disclosure 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