# CVE-2024-24557: Moby classic builder cache poisoning

- Severity: Medium 6.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-02-01T16:26:29.685Z
- Modified: 2026-09-10T03:50:00.315Z
- Also known as: GHSA-xw73-rw38-6vjc, GO-2024-2512
- Related: CGA-84m3-g3p3-gw6w
- Weaknesses: CWE-345, CWE-346
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- moby moby: >= 25.0.0, < 25.0.2;  < 24.0.9
- github.com/docker/docker (Go): before 24.0.9; from 25.0.0 before 25.0.2; before 24.0.9+incompatible; from 25.0.0+incompatible before 25.0.2+incompatible
- github.com/moby/moby (Go): before 24.0.9; from 25.0.0 before 25.0.2; before 24.0.9+incompatible; from 25.0.0+incompatible before 25.0.2+incompatible
- mobyproject moby: before 24.0.9; from 25.0.0 before 25.0.2

## Every score

- GitHub_M: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L`
- GitHub: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc> (advisory, vendor-advisory, web)
- <https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24557> (advisory)
- <https://github.com/moby/moby/commit/fca702de7f71362c8d103073c7e4a1d0a467fadd> (fix, web)
- <https://github.com/moby/moby/commit/fce6e0ca9bc000888de3daa157af14fa41fcd0ff> (fix, web)
- <https://github.com/moby/moby> (package)

## Sources

- CVE List: [CVE-2024-24557](https://www.cve.org/CVERecord?id=CVE-2024-24557), CVE Terms of Use, modified 2025-05-15
- GitHub Advisory Database: [GHSA-xw73-rw38-6vjc](https://github.com/advisories/GHSA-xw73-rw38-6vjc), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2512](https://pkg.go.dev/vuln/GO-2024-2512), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-24557](https://nvd.nist.gov/vuln/detail/CVE-2024-24557), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24557 · Whole record: https://cve.day/CVE-2024-24557.json · Rebuilt by cve.day 2026-11-25T22:58:36.499Z
