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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-02-01 · Modified: 2025-05-15
- Aliases: UBUNTU-CVE-2024-24557, DEBIAN-CVE-2024-24557, CGA-27jg-w8cw-wr55, CGA-28fr-ff85-697g, CGA-2f7x-cj24-x5h3, CGA-2ffp-xxm9-4rx6, CGA-2gp7-7p4m-ffmp, CGA-2mfx-grfm-3j3w, CGA-2v74-5776-rfg8, CGA-2wh6-4q59-rhm6, CGA-2x65-c882-qxcc, CGA-375h-r3c3-rc8v, CGA-395q-wmf9-3cr4, CGA-3973-8gjf-5r44, CGA-3c8v-3qfw-6hx2, CGA-3cvf-g38g-7rcx, CGA-3g8h-qx56-m93w, CGA-3gvx-8x82-446j, CGA-3h72-9mcq-f7rc, CGA-3h94-vpw2-vxhq, CGA-459x-f66v-36cv, CGA-4j3p-c388-3xq3, CGA-4j83-jwfq-vvpp, CGA-4vw6-cwwc-8vhj, CGA-534g-w3rw-g6q8, CGA-54g4-rp6v-p4xc, CGA-559j-4mpx-4c69, CGA-56f6-xc8x-rvm7, CGA-57f6-5vg2-563q, CGA-589f-7cc3-5mf4, CGA-58j5-8cqw-f5cq, CGA-597r-6gx7-2rmq, CGA-5hch-rjv6-hqr4, CGA-5mqh-672h-q6hr, CGA-5prf-m5xw-88vw, CGA-5q4v-72mf-h7gx, CGA-5rx3-cfj3-fffw, CGA-647c-4pp4-5pp3, CGA-668v-w547-9gq5, CGA-68c5-324h-jw68, CGA-6cwv-5x6j-r7hf, CGA-6h97-qgwm-whfh, CGA-6mp8-x63m-ghqg, CGA-6p3g-m27p-523j, CGA-7637-r7hv-3x4v, CGA-768h-wc6p-7qcj, CGA-7c66-r5vr-4xrp, CGA-7f4w-4hw8-wmvx, CGA-7gqr-3wjc-9cp2, CGA-7hxp-cgx5-m4qh, CGA-7j63-hcpx-c2m3, CGA-7qp7-37mj-vpg9, CGA-7r2j-qx7g-jqmq, CGA-7wqg-93f7-qrq4, CGA-84j3-5f47-rqj9, CGA-87g2-8v6r-ffh3, CGA-89hp-ff32-m8xg, CGA-8c97-5fq6-2x65, CGA-8f29-v8p4-29g4, CGA-8f7w-gqcc-gqmq, CGA-8mhr-2pwr-c93h, CGA-8p9p-96gh-88p2, CGA-8rpq-r655-5f3h, CGA-8rvg-f7rj-r52g, CGA-9fmg-p796-5v58, CGA-c2fp-6c2w-25mx, CGA-c2vr-jg72-r7v7, CGA-c326-hh2g-3mpx, CGA-c6j7-95j8-4qhf, CGA-c85p-2qmc-qfw6, CGA-cfv7-6qvv-qpjr, CGA-cj25-26qq-g52q, CGA-cjph-wp97-qqqg, CGA-cmp3-fc5x-v9mq, CGA-cwf6-h87p-cvq7, CGA-f5w5-3cwm-prjw, CGA-f63c-8v66-pm64, CGA-f674-2pwq-3mpw, CGA-f8x5-6wm2-343v, CGA-fc6v-9g2p-fhpf, CGA-fhcj-2gjr-c4f4, CGA-fq47-5w8g-42mq, CGA-fwv6-r53c-j97v, CGA-fx78-cw5c-f429, CGA-fxr4-q84q-45xp, CGA-g35x-7w69-q645, CGA-g3hg-q2w4-3j7q, CGA-g552-h6hr-87x9, CGA-g57p-4f74-jf47, CGA-g73p-f68x-6jjp, CGA-g8mx-jvvv-q324, CGA-gh2q-22xh-fv9q, CGA-gh6c-7cx2-jcmq, CGA-gmg2-hcpv-8q4x, CGA-gp2c-84v5-w87f, CGA-gw5h-3xwc-gffw, CGA-h467-v49x-gj9r, CGA-h4w9-g9m9-4pph, CGA-h53x-8vcw-3892, CGA-h7w3-mxvq-f4cj, CGA-h9jf-43wj-8mw7, CGA-hc5h-7f5v-gg2f, CGA-hcvr-8vwv-qc56, CGA-hrmg-jxr4-h79x, CGA-hw5x-j937-55jx, CGA-hwx5-fgjv-4fxq, CGA-j23v-xgm8-39f7, CGA-j2fg-fmq8-9qvw, CGA-j2g7-3g29-4vg6, CGA-j4ch-8wvc-3pv4, CGA-j4mx-prhr-hxgc, CGA-j6qw-vhv9-94g4, CGA-j82w-7f87-vmhw, CGA-j99x-6gq4-cmf4, CGA-jc3g-rxq4-p7rp, CGA-jg6p-7vfq-qx9f, CGA-jmc4-m43h-rvg6, CGA-jqp7-pgjj-rcq6, CGA-jrpg-qqrw-w292, CGA-jw73-7gmw-gx8m, CGA-jxxf-cwg8-cvp5, CGA-m2mv-fjv3-cph9, CGA-m3c3-8c2p-35pv, CGA-m56f-56gx-4gvf, CGA-m6ww-w48r-mjgp, CGA-m8hg-v6hw-jh4v, CGA-mgx5-xg8j-9374, CGA-mpfc-gm9v-wrjw, CGA-mrvj-67j8-7c65, CGA-mxh3-vg27-6qqf, CGA-p25p-g6fx-9489, CGA-p3px-2jg4-hhgp, CGA-p7h8-3cv4-5vwj, CGA-pjgg-qm5j-cv5f, CGA-pm5q-958j-jp6g, CGA-pp9q-qfv5-82xh, CGA-pxrf-grhh-7jcv, CGA-q393-29qm-xpg9, CGA-q62c-22hm-p66v, CGA-q9pm-mwjh-w36c, CGA-qj77-q6pp-5486, CGA-qjph-p5x7-vrgc, CGA-r2c8-ccgq-jrg9, CGA-r2qq-7m4h-r24m, CGA-rcp5-wr68-55ww, CGA-rg4c-p6c7-63wj, CGA-rrwm-rfvq-f89g, CGA-rwr7-v2rr-224m, CGA-rxjc-vr4h-cxgg, CGA-rxp3-g7rm-gxxp, CGA-v2fm-xq4g-x7x4, CGA-v33h-33w2-7q6p, CGA-v365-49h9-9jw3, CGA-v3jw-37mh-9q2w, CGA-vc3w-g57f-4f55, CGA-vc62-hq4h-6p2p, CGA-vm2g-g25h-wrvw, CGA-vm5f-mvhf-5jp8, CGA-vm9f-8rf7-mfm2, CGA-vmh7-jq52-7q7x, CGA-vwvr-mv7q-4jm5, CGA-vxcm-w2p2-wgj6, CGA-w552-mjgx-m6h8, CGA-w69c-vvr8-jrm8, CGA-w9jm-7vrj-4g97, CGA-wm52-qv4x-852g, CGA-wp9g-8g4j-9f89, CGA-wwjp-6wrf-5744, CGA-wxqh-h722-m33w, CGA-x3cg-7fxj-m772, CGA-x4w6-ph6p-xgp4, CGA-x73r-9g6m-5mj3, CGA-xgjj-3cm4-6frc, CGA-xhxh-3v4f-cxm7, CGA-xvx4-8q32-xpqj, CGA-xx9p-3wq7-gvvg, GHSA-xw73-rw38-6vjc, GO-2024-2512, openSUSE-SU-2024:14287-1, CGA-2364-p767-7238, CGA-2m7g-4fq5-5xgw, CGA-2v94-29rg-prv8, CGA-37vq-rq5q-9cmh, CGA-473q-p9r9-v927, CGA-4p58-4xgc-r7x6, CGA-4rfq-qhfg-fwfg, CGA-53c6-fcwx-vf45, CGA-56qg-wcr7-pwh2, CGA-583c-cjgq-4hg2, CGA-5wcr-vpj3-g7jp, CGA-6vw3-q59x-hgg5, CGA-7h65-q84x-838w, CGA-7xhj-jcmf-cxcq, CGA-86h6-jc3r-pfrv, CGA-89rp-4rgm-4p6j, CGA-8gqm-g2mc-w9jx, CGA-96xv-q3r3-qpwg, CGA-98v4-gh5x-q36m, CGA-9rjm-qx6x-r7vv, CGA-cqh4-rf5v-56fq, CGA-cxgp-r7qj-qwv9, CGA-f4rv-6x4q-p6xc, CGA-fcfg-96g4-9cp8, CGA-g4m6-pw75-cwc7, CGA-g68c-3v4j-h2j4, CGA-hhhw-c2m8-8rgr, CGA-hw4g-59gh-84fj, CGA-j23v-7p66-rmx4, CGA-j626-64px-rxqv, CGA-j8hh-6wmg-773f, CGA-jfwg-mj56-9q4q, CGA-jj57-w75q-g3qc, CGA-jw3p-36vg-gch9, CGA-m3gp-mw7g-9477, CGA-m69f-7445-74w8, CGA-p3j4-wrg2-48c8, CGA-pjxr-rv8j-xc5p, CGA-qxpm-vpvh-9vqh, CGA-r25h-23v8-3hc3, CGA-r4g5-38mq-9gcf, CGA-r4mj-47qp-f69h, CGA-r752-h2cm-v4f4, CGA-r8rf-96hc-9vvv, CGA-v5mx-qw9g-f2wf, CGA-vg99-9fxp-g3wf, CGA-w856-p6v3-fv2h, CGA-wf3j-hvvm-36h3, CGA-wggr-82vx-3fhg, CGA-x6gf-5fjh-xc35, CGA-x893-x427-3232, CGA-xwwc-g4q9-3vqg, ALPINE-CVE-2024-24557
- Record: https://cvemate.com/vulnerability/CVE-2024-24557 · JSON: https://cvemate.com/vulnerability/CVE-2024-24557/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.26%, percentile 18.915%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 205)

- alpine docker (Alpine Linux): \< 25.0.2-r0
- chainguard aactl (Chainguard): \< 0.4.12-r8
- chainguard argo-workflows (Chainguard): \< 3.5.5-r4
- chainguard argo-workflows-fips (Chainguard): \< 3.5.5-r3
- chainguard bom (Chainguard): \< 0.6.0-r4
- chainguard buildkitd (Chainguard): \< 0.13.1-r2
- chainguard cadvisor (Chainguard): \< 0.49.1-r4
- chainguard cadvisor-compat (Chainguard): \< 0.49.1-r4
- chainguard cadvisor-fips (Chainguard): \< 0.52.1-r2
- chainguard chartmuseum (Chainguard): \< 0.16.2-r15
- chainguard cosign (Chainguard): \< 2.2.3-r4
- chainguard cosign-fips (Chainguard): \< 2.2.3-r4
- chainguard crane (Chainguard): \< 0.19.1-r1
- chainguard cri-tools (Chainguard): \< 1.29.0-r6
- chainguard crictl (Chainguard): \< 1.29.0-r6
- chainguard critest (Chainguard): \< 1.29.0-r6
- chainguard ctop (Chainguard): \< 0.7.7-r13
- chainguard dagger (Chainguard): \< 0.10.2-r1
- chainguard docker (Chainguard): All versions (No fix recorded)
- chainguard docker-config-mirror-gcr (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc>
- <https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae>
- <https://ubuntu.com/security/CVE-2024-24557>
- <https://www.cve.org/CVERecord?id=CVE-2024-24557>
- <https://security-tracker.debian.org/tracker/CVE-2024-24557>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24557.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24557>
- <https://github.com/moby/moby/commit/fca702de7f71362c8d103073c7e4a1d0a467fadd>
- <https://github.com/moby/moby/commit/fce6e0ca9bc000888de3daa157af14fa41fcd0ff>
- <https://github.com/moby/moby>
- <https://www.suse.com/security/cve/CVE-2024-24557>
- <https://security.alpinelinux.org/vuln/CVE-2024-24557>

---

Data as of 2026-12-05T04:45:16.036Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
