CVE-2024-23652

CRITICAL

BuildKit < 0.12.5 - Path Traversal via RUN --mount Feature

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2024-23652. PoCs published by abian2.

AI-analyzed exploit summary This Dockerfile exploits CVE-2024-23652 by leveraging a symlink attack during the build process to manipulate the filesystem structure. The exploit uses a tmpfs mount and symbolic link to achieve privilege escalation or container escape.

Description

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.

Exploits (1)

nomisec WORKING POC 2 stars
by abian2 · poc
https://github.com/abian2/CVE-2024-23652

This Dockerfile exploits CVE-2024-23652 by leveraging a symlink attack during the build process to manipulate the filesystem structure. The exploit uses a tmpfs mount and symbolic link to achieve privilege escalation or container escape.

Classification
Working Poc 90%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: Docker (specific version affected by CVE-2024-23652)
No auth needed
Prerequisites: Docker build environment · Vulnerable Docker version
devstral-2 · analyzed Feb 19, 2026 Full analysis →

References (3)

Core 3
Core References
Patch, Vendor Advisory x_refsource_misc
https://github.com/moby/buildkit/pull/4603
Patch, Release Notes x_refsource_misc
https://github.com/moby/buildkit/releases/tag/v0.12.5

Scores

CVSS v3 10.0
EPSS 0.0570
EPSS Percentile 90.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-22
Status published
Products (2)
moby/buildkit 0 - 0.12.5Go
mobyproject/buildkit < 0.12.5
Published Jan 31, 2024
Tracked Since Feb 18, 2026