CVE-2024-23652 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 1, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/moby/buildkit/pull/4603 | CVE | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | CVE | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 | CVE | Vendor Advisory |
| https://github.com/moby/buildkit/pull/4603 | [email protected] | PatchVendor Advisory |
| https://github.com/moby/buildkit/releases/tag/v0.12.5 | [email protected] | PatchRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mobyproject buildkit | < 0.12.5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 9, 2024 | Initial Analysis | [email protected] |
| Jan 31, 2024 | New CVE Received | [email protected] |