← volver
CVE-2024-23651

BuildKit possible race condition with accessing subpaths from cache mounts

CVSS 8.7 HIGHEPSS 0.8%CWE-362
En resumen

BuildKit puede permitir que archivos del sistema host sean accesibles por un contenedor de build cuando dos pasos maliciosos se ejecutan en paralelo compartiendo el mismo cache con subpaths, debido a una race condition. Esto es grave porque expone archivos sensibles del host a contenedores no confiables.

Detalle técnico

Existe una race condition en el manejo de cache mounts de BuildKit cuando múltiples pasos de build se ejecutan concurrentemente con subpaths superpuestos en cache compartido. Un atacante controlando dos pasos en paralelo puede explotar brechas de timing en el acceso al cache para leer archivos arbitrarios del filesystem del host que deberían estar aislados. La vulnerabilidad requiere configuración de cache compartido con subpaths y ejecución paralela; fue corregida en v0.12.5.

Resumen generado y traducido por IA a partir de la descripción oficial.
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Productos afectados
moby · buildkit

¿Quieres saber si tu infraestructura está expuesta a esto?

Hablar con TrueHacking →