PT-2024-1509 · Docker+3 · Moby+4

Rumpl

+1

·

Published

2024-02-01

·

Updated

2026-02-06

·

CVE-2024-24557

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Moby versions prior to 23.0 Moby versions 23.0 and later with DOCKER BUILDKIT=0 environment variable Moby versions 23.0 and later using the /build API endpoint
Description The classic builder cache system in Moby is prone to cache poisoning if the image is built FROM scratch. Changes to some instructions, such as HEALTHCHECK and ONBUILD, would not cause a cache miss. An attacker with knowledge of the Dockerfile could poison the cache by making them pull a specially crafted image that would be considered a valid cache candidate for some build steps. The Image build API endpoint (/build) and ImageBuild function from github.com/docker/docker/client are also affected as they use the classic builder by default.
Recommendations For versions prior to 23.0, update to a version that includes the patch, such as 24.0.9 or 25.0.2. For versions 23.0 and later with DOCKER BUILDKIT=0 environment variable, set DOCKER BUILDKIT=1 to use Buildkit or update to a version that includes the patch. For versions 23.0 and later using the /build API endpoint, consider using the --no-cache option or updating to a version that includes the patch. As a temporary workaround, consider using --no-cache or setting NoCache = true in ImageBuildOptions for ImageBuild call. Use Version = types.BuilderBuildKit in ImageBuildOptions for ImageBuild call to use Buildkit.

Exploit

Fix

Origin Validation Error

Insufficient Verification of Data Authenticity

Weakness Enumeration

Related Identifiers

AZL-34275
AZL-35002
BDU:2024-01020
CLEANSTART-2026-BK59402
CLEANSTART-2026-BN11148
CLEANSTART-2026-GY69323
CLEANSTART-2026-HL71566
CLEANSTART-2026-JD48541
CLEANSTART-2026-OS18490
CLEANSTART-2026-SB85645
CLEANSTART-2026-SP51034
CLEANSTART-2026-TD34476
CLEANSTART-2026-XL45869
CLEANSTART-2026-YB44027
CLEANSTART-2026-ZM20570
CVE-2024-24557
ECHO-CCFB-33B9-BA76
GHSA-XW73-RW38-6VJC
GO-2024-2512
OESA-2024-1302
OPENSUSE-SU-2024:14287-1

Affected Products

Astra Linux
Debian
Docker
Moby
Red Os