CVE-2024-24557

Moby classic builder cache poisoning

HIGH
7.8
CVSS Score
Published: February 1, 2024 at 04:26 PM UTC
Updated: June 17, 2026 at 07:14 AM UTC
2 products affected across 2 vendorsMobyMoby

Using moby by moby?

Get instant alerts when new vulnerabilities affect moby - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

Moby is an open-source project created by Docker to enable software containerization. The classic builder cache system is prone to cache poisoning if the image is built FROM scratch. Also, changes to some instructions (most important being HEALTHCHECK and ONBUILD) would not cause a cache miss. An attacker with the knowledge of the Dockerfile someone is using could poison their cache by making them pull a specially crafted image that would be considered as a valid cache candidate for some build steps. 23.0+ users are only affected if they explicitly opted out of Buildkit (DOCKER_BUILDKIT=0 environment variable) or are using the /build API endpoint. All users on versions older than 23.0 could be impacted. Image build API endpoint (/build) and ImageBuild function from github.com/docker/docker/client is also affected as it the uses classic builder by default. Patches are included in 24.0.9 and 25.0.2 releases.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 24.0.925.0.0 ≤ v < 25.0.2
Affected range stops below 24.0.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 25.0.2, so it looks safe — our inference, not a vendor statement
v < 24.0.9v < 25.0.2
Affected range stops below 24.0.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 25.0.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-345CWE-346

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card