CVE-2024-24557
published medium CVSS 3.1 · 6.9Moby classic builder cache poisoning
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| moby | — | moby>= 25.0.0, < 25.0.2 · < 24.0.9 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2DOCKER-2024-044 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2ECS-2024-041 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2NITRO-ENCLAVES-2024-045 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-542 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | docker | Fixed | 25.0.2-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runneraarch64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| Amazon Linux | AL2 | dockeraarch64 | Listed in advisory | Not stated | ALAS2DOCKER-2024-044 |
Show 33 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.18 | docker | Fixed | 25.0.2-r0 | Package fix record |
| Alpine Linux | v3.19 | docker | Fixed | 25.0.2-r0 | Package fix record |
| Alpine Linux | v3.20 | docker | Fixed | 25.0.2-r0 | Package fix record |
| Alpine Linux | v3.21 | docker | Fixed | 25.0.2-r0 | Package fix record |
| Alpine Linux | v3.22 | docker | Fixed | 25.0.2-r0 | Package fix record |
| Alpine Linux | v3.23 | docker | Fixed | 25.0.2-r0 | Package fix record |
| Alpine Linux | v3.24 | docker | Fixed | 25.0.2-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runnerppc64le | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runners390x | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runnerx86_64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-bash-completionaarch64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-bash-completionppc64le | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-bash-completions390x | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-bash-completionx86_64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-fish-completionaarch64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-fish-completionppc64le | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-fish-completions390x | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-fish-completionx86_64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-zsh-completionaarch64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-zsh-completionppc64le | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-zsh-completions390x | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | forgejo-runner-zsh-completionx86_64 | Advisory build | 3.5.1-1.1 | OPENSUSE-SU-2024:14287-1 |
| Amazon Linux | AL2 | dockeraarch64 | Listed in advisory | Not stated | ALAS2ECS-2024-041 |
| Amazon Linux | AL2 | dockeraarch64 | Listed in advisory | Not stated | ALAS2NITRO-ENCLAVES-2024-045 |
| Amazon Linux | AL2 | dockersrc | Listed in advisory | Not stated | ALAS2DOCKER-2024-044 |
| Amazon Linux | AL2 | dockersrc | Listed in advisory | Not stated | ALAS2ECS-2024-041 |
| Amazon Linux | AL2 | dockersrc | Listed in advisory | Not stated | ALAS2NITRO-ENCLAVES-2024-045 |
| Amazon Linux | AL2 | dockerx86_64 | Listed in advisory | Not stated | ALAS2DOCKER-2024-044 |
| Amazon Linux | AL2 | dockerx86_64 | Listed in advisory | Not stated | ALAS2ECS-2024-041 |
| Amazon Linux | AL2 | dockerx86_64 | Listed in advisory | Not stated | ALAS2NITRO-ENCLAVES-2024-045 |
| Amazon Linux | AL2023 | dockeraarch64 | Listed in advisory | Not stated | ALAS2023-2024-542 |
| Amazon Linux | AL2023 | dockersrc | Listed in advisory | Not stated | ALAS2023-2024-542 |
| Amazon Linux | AL2023 | dockerx86_64 | Listed in advisory | Not stated | ALAS2023-2024-542 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| moby | moby | >= 25.0.0, < 25.0.2 (affected) < 24.0.9 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-346 CWE-346: Origin Validation Error
- CWE-345 CWE-345: Insufficient Verification of Data Authenticity
References
2Provider assertions
3GitHub_M · cna
Moby classic builder cache poisoning
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7c0a8c4c43e0b94aeba20555b443a2d2174f542f8edd46f322e76fdbf2ca7bf8
- Ingested
- 23 Sep 2026, 08:19:54 UTC
- Source record
- Official CVE record