CVE-2024-24557
Docker Moby Classic Builder Cache Poisoning Vulnerability
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.
INFO
Published Date :
Feb. 1, 2024, 5:15 p.m.
Last Modified :
Nov. 21, 2024, 8:59 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2024-24557 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-24557
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Learning how to deploy a simple 3 nodes (1 server and 2 agents) k3s cluster with rancher ui installed through a docker-compose.
Dockerfile Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-24557
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-24557
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae Added Reference https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Feb. 09, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae No Types Assigned https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae Patch Changed Reference Type https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc No Types Assigned https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc Vendor Advisory Added CWE NIST CWE-346 Added CPE Configuration OR *cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:* versions up to (excluding) 24.0.9 *cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:* versions from (including) 25.0.0 up to (excluding) 25.0.2 -
CVE Received by [email protected]
Feb. 01, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc [No types assigned] Added Reference GitHub, Inc. https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae [No types assigned] Added CWE GitHub, Inc. CWE-346 Added CWE GitHub, Inc. CWE-345 Added CVSS V3.1 GitHub, Inc. AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-24557
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-24557
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.05 }} 0.01%
score
0.18603
percentile