CVE-2024-24557

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:*

History

09 Feb 2024, 20:21

Type Values Removed Values Added
Summary
  • (es) Moby es un proyecto de código abierto creado por Docker para permitir la contenedorización de software. El sistema de caché del constructor clásico es propenso a envenenar el caché si la imagen se crea DESDE scratch. Además, los cambios en algunas instrucciones (las más importantes son HEALTHCHECK y ONBUILD) no provocarían una pérdida de caché. Un atacante con conocimiento del Dockerfile que alguien está usando podría envenenar su caché al obligarlo a extraer una imagen especialmente manipulada que se consideraría como un candidato de caché válido para algunos pasos de compilación. Los usuarios de 23.0+ solo se ven afectados si optaron explícitamente por no participar en Buildkit (variable de entorno DOCKER_BUILDKIT=0) o si están usando el endpoint API /build. Todos los usuarios con versiones anteriores a la 23.0 podrían verse afectados. El punto final de la API de creación de imágenes (/build) y la función ImageBuild de github.com/docker/docker/client también se ven afectados ya que utiliza el generador clásico de forma predeterminada. Los parches se incluyen en las versiones 24.0.9 y 25.0.2.
References () https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae - () https://github.com/moby/moby/commit/3e230cfdcc989dc524882f6579f9e0dac77400ae - Patch
References () https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc - () https://github.com/moby/moby/security/advisories/GHSA-xw73-rw38-6vjc - Vendor Advisory
CVSS v2 : unknown
v3 : 6.9
v2 : unknown
v3 : 7.8
First Time Mobyproject
Mobyproject moby
CPE cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:*

01 Feb 2024, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-02-01 17:15

Updated : 2024-02-09 20:21


NVD link : CVE-2024-24557

Mitre link : CVE-2024-24557

CVE.ORG link : CVE-2024-24557


JSON object : View

Products Affected

mobyproject

  • moby
CWE
CWE-346

Origin Validation Error

CWE-345

Insufficient Verification of Data Authenticity