{"cve":"CVE-2024-24557","nvd":{"published":"2024-02-01T17:15:10.953","modified":"2026-06-17T07:14:36.123","status":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-346","CWE-345"],"references":["https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae","https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc","https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae","https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc"],"products":["mobyproject:moby"],"source":"nvd","synced_at":"2026-10-19T21:44:57.175229480+00:00"},"epss":{"cve":"CVE-2024-24557","score":0.0026,"percentile":0.17817,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xw73-rw38-6vjc","url":"https://osv.dev/vulnerability/GHSA-xw73-rw38-6vjc","summary":"Classic builder cache poisoning","modified":"2026-09-10T03:50:00.315725311Z","packages":[{"ecosystem":"Go","name":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","ranges":["<24.0.9"],"fixed":["24.0.9"]},{"ecosystem":"Go","name":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","ranges":["<24.0.9"],"fixed":["24.0.9"]},{"ecosystem":"Go","name":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","ranges":[">=25.0.0 <25.0.2"],"fixed":["25.0.2"]},{"ecosystem":"Go","name":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","ranges":[">=25.0.0 <25.0.2"],"fixed":["25.0.2"]}]},{"id":"GO-2024-2512","url":"https://osv.dev/vulnerability/GO-2024-2512","summary":"Classic builder cache poisoning in github.com/docker/docker","modified":"2026-02-04T04:11:30.933192Z","packages":[{"ecosystem":"Go","name":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","ranges":["<24.0.9+incompatible",">=25.0.0+incompatible <25.0.2+incompatible"],"fixed":["24.0.9+incompatible","25.0.2+incompatible"]},{"ecosystem":"Go","name":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","ranges":["<24.0.9+incompatible",">=25.0.0+incompatible <25.0.2+incompatible"],"fixed":["24.0.9+incompatible","25.0.2+incompatible"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}