CVE-2024-23652
CRITICAL EPSS 78.7%
Published Jan 31, 20242y ago · Modified Jun 17, 20262w ago
9.1 CVSS 3.1
Published Jan 31, 2024 2y ago
Last Modified Jun 17, 2026 2w ago
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity High
Availability High
Threat Intelligence
EPSS Exploit Probability
78.7% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 1
CWE-22 Path Traversal Resource Mgmt
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| mobyproject | buildkit | * | <0.12.5 |
References 3
- github.com https://github.com/moby/buildkit/pull/4603
- github.com https://github.com/moby/buildkit/releases/tag/v0.12.5
- github.com https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8
Remediation
- github.com https://github.com/moby/buildkit/pull/4603
- github.com https://github.com/moby/buildkit/releases/tag/v0.12.5