Vulnerability record · CVE-2024-23652 · published 31 January 2024
CVE-2024-23652: Mobyproject buildkit path traversal vulnerability
Mobyproject · Buildkit
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.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/moby/buildkit/pull/4603 | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 | Vendor Advisory |
| https://github.com/moby/buildkit/pull/4603 | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 | Vendor Advisory |
Track CVE-2024-23652 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-23652), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.