CVE-2024-24557Moby classic builder cache poisoning
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.
What to do
Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | docker.io | Fix pending | UBUNTU-CVE-2024-24557 | |
| Ubuntu 26.04 | docker.io | Fix pending | UBUNTU-CVE-2024-24557 | |
| Ubuntu 26.04 | docker.io-app | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | docker.io | Will not fix Traditionally the docker.io source package contained both the library and docker application. However, in releases that contain the docker.io-app source… | UBUNTU-CVE-2024-24557 | |
| Ubuntu 25.10 | docker.io-app | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | docker.io | Fix pending | UBUNTU-CVE-2024-24557 | |
| Ubuntu 24.04 | docker.io-app | Fixed | 27.5.1-0ubuntu3~24.04.2 | UBUNTU-CVE-2024-24557 |
| Ubuntu 22.04 | docker.io | Fix pending | UBUNTU-CVE-2024-24557 | |
| Ubuntu 22.04 | docker.io-app | Fixed | 27.5.1-0ubuntu3~22.04.2 | UBUNTU-CVE-2024-24557 |
| Ubuntu 20.04 | docker.io | Fix pending | UBUNTU-CVE-2024-24557 | |
| Ubuntu 20.04 | docker.io-app | Fix pending | 26.1.3-0ubuntu1~20.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-24557 |
| Ubuntu 18.04 | docker.io | Fix pending | UBUNTU-CVE-2024-24557 | |
| Ubuntu 16.04 | docker.io | Will not fix Traditionally the docker.io source package contained both the library and docker application. However, in releases that contain the docker.io-app source… | ||
| Ubuntu 14.04 | docker.io | Will not fix Traditionally the docker.io source package contained both the library and docker application. However, in releases that contain the docker.io-app source… | ||
| Debian 14 | docker.io | Fixed | 26.1.4+dfsg1-9 | DEBIAN-CVE-2024-24557 |
| Debian 13 | docker.io | Fixed | 26.1.4+dfsg1-9 | DEBIAN-CVE-2024-24557 |
| Debian 12 | docker.io | Fix pending | DEBIAN-CVE-2024-24557 | |
| Alpine Linux 3.24 | docker | Fixed | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine Linux 3.23 | docker | Fixed | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine Linux 3.22 | docker | Fixed | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine Linux 3.21 | docker | Fixed | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine Linux 3.20 | docker | Fixed | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine Linux 3.19 | docker | Fixed | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Alpine Linux 3.18 | docker | Fixed | 25.0.2-r0 | ALPINE-CVE-2024-24557 |
| Go library | github.com/docker/docker | Fixed | 25.0.2+incompatible | GO-2024-2512 |
| Go library | github.com/moby/moby | Fixed | 24.0.9 | GHSA-xw73-rw38-6vjc |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- moby: affected: >= 25.0.0, < 25.0.2, < 24.0.9
References
- https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc
- https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.