cve.bz

CVE-2024-24557 mobyproject moby: Origin Validation Error

7.8 highEPSS 0.3%Fix available

High (7.8) in mobyproject moby. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/docker/docker 24.0.9, 24.0.9+incompatible, 25.0.2.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-05-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-346 Origin Validation Error
CWE-345 Insufficient Verification of Data Authenticity
OWASP Top 10
A07:2025 Authentication Failures, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-24557 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-24557?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-24557?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-24557 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mobyproject:mobybefore 24.0.9
mobyproject:mobyfrom 25.0.0 before 25.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xw73-rw38-6vjcGogithub.com/docker/docker<24.0.924.0.9
GHSA-xw73-rw38-6vjcGogithub.com/moby/moby<24.0.924.0.9
GHSA-xw73-rw38-6vjcGogithub.com/moby/moby>=25.0.0 <25.0.225.0.2
GHSA-xw73-rw38-6vjcGogithub.com/docker/docker>=25.0.0 <25.0.225.0.2
GO-2024-2512Gogithub.com/docker/docker<24.0.9+incompatible
>=25.0.0+incompatible <25.0.2+incompatible
24.0.9+incompatible, 25.0.2+incompatible
GO-2024-2512Gogithub.com/moby/moby<24.0.9+incompatible
>=25.0.0+incompatible <25.0.2+incompatible
24.0.9+incompatible, 25.0.2+incompatible

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12docker.iono fix listedDEBIAN-CVE-2024-24557
Debian13, 14docker.io26.1.4+dfsg1-9DEBIAN-CVE-2024-24557
Ubuntu22.04:LTSdocker.io-app27.5.1-0ubuntu3~22.04.2UBUNTU-CVE-2024-24557
Ubuntu24.04:LTSdocker.io-app27.5.1-0ubuntu3~24.04.2UBUNTU-CVE-2024-24557
Ubuntu25.10, 26.04:LTS, 26.10 and 4 moredocker.iono fix listedUBUNTU-CVE-2024-24557
UbuntuPro:20.04:LTSdocker.io-app26.1.3-0ubuntu1~20.04.1+esm1UBUNTU-CVE-2024-24557
openSUSETumbleweedforgejo-runner3.5.1-1.1openSUSE-SU-2024:14287-1
Alpinev3.18, v3.19, v3.20 and 4 moredocker25.0.2-r0ALPINE-CVE-2024-24557
Azure Linux2moby-engine20.10.27-3AZL-34275
Azure Linux3moby-engine25.0.3-1AZL-35002
Alpaquita23dockerno fix listedBELL-CVE-2024-24557
Alpaquitastreamdocker25.0.2-r0BELL-CVE-2024-24557

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this as a Moderate impact since attack complexity is quite high. There are multiple conditions which are required: dockerfile is configured to use a non-default setting, attacker must be aware of this information, and they must have the ability to craft a malicious cache.

ProductPackageStateAdvisory
Red Hat Ceph Storage 7.1rhceph/grafana-rhel9:11.5.2-5Fixed 2025-06-23RHSA-2025:9340
Red Hat Ceph Storage 7.1rhceph/rhceph-promtail-rhel9:v3.0.0-33Fixed 2025-06-23RHSA-2025:9340
Red Hat Ceph Storage 8.1rhceph/grafana-rhel9:11.6.2-4Fixed 2025-07-24RHSA-2025:11749
OpenShift Service Mesh 2openshift-service-mesh/istio-cni-rhel8Not affected
OpenShift Service Mesh 2openshift-service-mesh/istio-rhel8-operatorNot affected
Red Hat Ceph Storage 6rhceph/rhceph-6-dashboard-rhel9Affected
Red Hat OpenShift Container Platform 4openshift4/ose-agent-installer-api-server-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-consoleNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-24557.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-345 (12), CWE-346 (16).

References

Check your stackJSON