{"answers":{"affected":"10 open source packages ship an affected version, including github.com/moby/moby and github.com/docker/docker. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-24557 in the wild and no public exploit code.","fix":"Upgrade github.com/moby/moby to a fixed version for your release line: 24.0.9+incompatible, 25.0.2+incompatible, 24.0.9 or 25.0.2.","what":"CVE-2024-24557 is a medium-severity vulnerability in moby, published on 1 Feb 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-24557 and fix it if it is affected.\n\nWhat it is: CVE-2024-24557 is a medium-severity vulnerability in moby, published on 1 Feb 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-24557 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/moby/moby (Go): affected all versions; fixed in 24.0.9+incompatible, 25.0.2+incompatible\n- github.com/moby/moby (Go): affected all versions; fixed in 24.0.9\n- github.com/moby/moby (Go): affected all versions; fixed in 24.0.9\n- github.com/moby/moby (Go): affected from 25.0.0; fixed in 25.0.2\n- github.com/moby/moby (Go): affected from 25.0.0; fixed in 25.0.2\n- github.com/docker/docker (Go): affected all versions; fixed in 24.0.9+incompatible, 25.0.2+incompatible\n- github.com/docker/docker (Go): affected all versions; fixed in 24.0.9\n- github.com/docker/docker (Go): affected all versions; fixed in 24.0.9\n- github.com/docker/docker (Go): affected from 25.0.0; fixed in 25.0.2\n- github.com/docker/docker (Go): affected from 25.0.0; fixed in 25.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-24557/ (Markdown: https://insights.sbomify.com/CVE-2024-24557/index.md)","id":"CVE-2024-24557","markdown":"https://insights.sbomify.com/CVE-2024-24557/index.md","name":"CVE-2024-24557","record":{"aliases":["AZL-34275","AZL-35002","BELL-CVE-2024-24557","CLEANSTART-2026-HP60657","CLEANSTART-2026-PY60272","CLEANSTART-2026-QF32596","CLEANSTART-2026-SP18128","DEBIAN-CVE-2024-24557","GHSA-xw73-rw38-6vjc","GO-2024-2512","MINI-4jx8-mv5m-v9m8","MINI-8364-vw6j-x6hv","MINI-8mgr-xxmc-q436","OESA-2024-1302","UBUNTU-CVE-2024-24557","openSUSE-SU-2024:14287-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Docker containerization","requires_auth":"none","summary":"Attackers can poison the classic builder cache to inject malicious code into container builds, affecting users who disable BuildKit or use older versions.","user_interaction":"required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"moby","vendor":"mobyproject"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"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.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Moby classic builder cache poisoning","id":"CVE-2024-24557","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"supply_chain","year":"2024"},"n_packages":11,"n_references":2,"next":{"headline":"react-query-streamed-hydration xss","id":"CVE-2024-24558"},"packages":[{"ecosystem":"Go","fixed":["24.0.9+incompatible","25.0.2+incompatible"],"introduced":["0","25.0.0+incompatible"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GO-2024-2512"},{"ecosystem":"Go","fixed":["24.0.9"],"introduced":["0"],"last_affected":[],"package":"github.com/docker/docker","purl":null,"source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"Go","fixed":["24.0.9"],"introduced":["0"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"Go","fixed":["25.0.2"],"introduced":["25.0.0"],"last_affected":[],"package":"github.com/docker/docker","purl":null,"source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"Go","fixed":["25.0.2"],"introduced":["25.0.0"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"Go","fixed":["24.0.9+incompatible","25.0.2+incompatible"],"introduced":["0","25.0.0+incompatible"],"last_affected":[],"package":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","source":"GO-2024-2512"},{"ecosystem":"Go","fixed":["24.0.9"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/moby","purl":null,"source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"Go","fixed":["24.0.9"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"Go","fixed":["25.0.2"],"introduced":["25.0.0"],"last_affected":[],"package":"github.com/moby/moby","purl":null,"source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"Go","fixed":["25.0.2"],"introduced":["25.0.0"],"last_affected":[],"package":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","source":"GHSA-xw73-rw38-6vjc"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.5.1-1.1"],"introduced":["0"],"last_affected":[],"package":"forgejo-runner","purl":"pkg:rpm/opensuse/forgejo-runner\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14287-1"}],"prev":{"headline":"XSS in @urql/next","id":"CVE-2024-24556"},"products":["moby"],"published":"2024-02-01","related":[{"cvss_score":8.1,"headline":"Moby Race Condition vulnerability","id":"CVE-2024-36623","kev_date_added":null,"published":"2024-11-29"},{"cvss_score":7.5,"headline":"moby/moby's dockerd daemon encrypted overlay network may be unauthenticated","id":"CVE-2023-28840","kev_date_added":null,"published":"2023-04-04"},{"cvss_score":7.5,"headline":"Docker Authentication Bypass","id":"CVE-2018-12608","kev_date_added":null,"published":"2018-09-10"},{"cvss_score":6.8,"headline":"moby/moby's dockerd daemon encrypted overlay network traffic may be unencrypted","id":"CVE-2023-28841","kev_date_added":null,"published":"2023-04-04"},{"cvss_score":6.8,"headline":"moby/moby's dockerd daemon encrypted overlay network with a single endpoint is unauthenticated","id":"CVE-2023-28842","kev_date_added":null,"published":"2023-04-04"},{"cvss_score":6.5,"headline":"NULL Pointer Dereference on moby image history","id":"CVE-2024-36620","kev_date_added":null,"published":"2024-11-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-15","vendors":["moby"]},"summary":"Attackers can poison the classic builder cache to inject malicious code into container builds, affecting users who disable BuildKit or use older versions.","url":"https://insights.sbomify.com/CVE-2024-24557/"}