CVE-2024-24557
Moby classic builder cache poisoning
Also known as GHSA-xw73-rw38-6vjc, GO-2024-2512
Mitigation
- Upgrade github.com/docker/docker to one of 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible (or later in the same release line).
- Upgrade github.com/moby/moby to one of 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/docker/docker (< 24.0.9)
- Projects that depend on Go package github.com/moby/moby (< 24.0.9)
- Anyone running moby >= 25.0.0, < 25.0.2; < 24.0.9
Vulnerability facts
- Affected
- github.com/docker/docker < 24.0.9; github.com/moby/moby < 24.0.9
- Fixed in
- 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.9 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: Low
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-346, CWE-345
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/docker/docker | < 24.0.9 | 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible | osv |
| Go github.com/moby/moby | < 24.0.9 | 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible | osv |
| moby | >= 25.0.0, < 25.0.2; < 24.0.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-24557. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-24557.md Affected: github.com/docker/docker < 24.0.9; github.com/moby/moby < 24.0.9 Fixed in: 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible Steps: 1. Search this machine and project for github.com/docker/docker (Go), github.com/moby/moby (Go), moby: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2024-24557 being exploited?
There is no confirmed exploitation: CVE-2024-24557 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-24557?
Medium: CVSS 6.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-24557?
github.com/docker/docker < 24.0.9; github.com/moby/moby < 24.0.9.
Is there a fix for CVE-2024-24557?
Yes. Fixed in 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible. Upgrade github.com/docker/docker to one of 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible (or later in the same release line). Upgrade github.com/moby/moby to one of 24.0.9, 25.0.2, 24.0.9+incompatible, 25.0.2+incompatible (or later in the same release line).
How do I check if I'm affected by CVE-2024-24557?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.