CVEfocus › CVE database › CVE-2024-24557

CVE-2024-24557Moby classic builder cache poisoning

CVSS 6.9 MediumEPSS 0.3% (higher than 16% of CVEs)Published 2024-02-01Updated 2025-05-15Assigner: GitHub_M

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.

CWE-345CWE-346

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

13Fixed
8Fix pending
3Will not fix
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10docker.ioFix pendingUBUNTU-CVE-2024-24557
Ubuntu 26.04docker.ioFix pendingUBUNTU-CVE-2024-24557
Ubuntu 26.04docker.io-appNot affected
vulnerable_code_not_present
Ubuntu 25.10docker.ioWill 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.10docker.io-appNot affected
vulnerable_code_not_present
Ubuntu 24.04docker.ioFix pendingUBUNTU-CVE-2024-24557
Ubuntu 24.04docker.io-appFixed27.5.1-0ubuntu3~24.04.2UBUNTU-CVE-2024-24557
Ubuntu 22.04docker.ioFix pendingUBUNTU-CVE-2024-24557
Ubuntu 22.04docker.io-appFixed27.5.1-0ubuntu3~22.04.2UBUNTU-CVE-2024-24557
Ubuntu 20.04docker.ioFix pendingUBUNTU-CVE-2024-24557
Ubuntu 20.04docker.io-appFix pending26.1.3-0ubuntu1~20.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-24557
Ubuntu 18.04docker.ioFix pendingUBUNTU-CVE-2024-24557
Ubuntu 16.04docker.ioWill 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.04docker.ioWill 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 14docker.ioFixed26.1.4+dfsg1-9DEBIAN-CVE-2024-24557
Debian 13docker.ioFixed26.1.4+dfsg1-9DEBIAN-CVE-2024-24557
Debian 12docker.ioFix pendingDEBIAN-CVE-2024-24557
Alpine Linux 3.24dockerFixed25.0.2-r0ALPINE-CVE-2024-24557
Alpine Linux 3.23dockerFixed25.0.2-r0ALPINE-CVE-2024-24557
Alpine Linux 3.22dockerFixed25.0.2-r0ALPINE-CVE-2024-24557
Alpine Linux 3.21dockerFixed25.0.2-r0ALPINE-CVE-2024-24557
Alpine Linux 3.20dockerFixed25.0.2-r0ALPINE-CVE-2024-24557
Alpine Linux 3.19dockerFixed25.0.2-r0ALPINE-CVE-2024-24557
Alpine Linux 3.18dockerFixed25.0.2-r0ALPINE-CVE-2024-24557
Go librarygithub.com/docker/dockerFixed25.0.2+incompatibleGO-2024-2512
Go librarygithub.com/moby/mobyFixed24.0.9GHSA-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.

References

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.