Vulnerability · Published Feb 1, 2024 · Assigned by GitHub_M
CVE-2024-24557Moby classic builder cache poisoning
Medium 6.9
In plain English
A medium-severity insufficient verification of data authenticity in moby from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | docker | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine:v3.21 | docker | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine:v3.22 | docker | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine:v3.23 | docker | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine:v3.24 | docker | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Debian:12 | docker.io | no fix listed | DEBIAN-CVE-2024-24557 |
| Debian:13 | docker.io | 26.1.4+dfsg1-9 | DEBIAN-CVE-2024-24557 |
| Debian:14 | docker.io | 26.1.4+dfsg1-9 | DEBIAN-CVE-2024-24557 |
| Go | github.com/docker/docker | 24.0.9+incompatible, 25.0.2+incompatible | GO-2024-2512 |
| Go | github.com/docker/docker | 24.0.9 | GHSA-xw73-rw38-6vjc |
| Go | github.com/docker/docker | 25.0.2 | GHSA-xw73-rw38-6vjc |
| Go | github.com/moby/moby | 25.0.2 | GHSA-xw73-rw38-6vjc |
| Go | github.com/moby/moby | 24.0.9 | GHSA-xw73-rw38-6vjc |
| Go | github.com/moby/moby | 24.0.9+incompatible, 25.0.2+incompatible | GO-2024-2512 |
| Ubuntu:25.10 | docker.io | no fix listed | UBUNTU-CVE-2024-24557 |
| Ubuntu:26.04:LTS | docker.io | no fix listed | UBUNTU-CVE-2024-24557 |
| Ubuntu:26.10 | docker.io | no fix listed | UBUNTU-CVE-2024-24557 |
| Ubuntu:22.04:LTS | docker.io-app | 27.5.1-0ubuntu3~22.04.2 | UBUNTU-CVE-2024-24557 |
| Ubuntu:24.04:LTS | docker.io-app | 27.5.1-0ubuntu3~24.04.2 | UBUNTU-CVE-2024-24557 |
Affected products (as reported)
Weakness: CWE-346, CWE-345 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L
References
- https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc x_refsource_CONFIRM
- https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae x_refsource_MISC