CVE-2026-15791 Details
Description
A crafted message in the BuildKit low-level build API can be used to remove the contents of the /tmp directory. The action that can normally be used to delete files inside the build container rootfs can escape into the real host temp directory.
A vulnerability exists in Docker BuildKit versions through v0.31.1, allowing crafted messages in the low-level build API to delete files from the host's /tmp directory. This issue arises because the API can inadvertently escape the build container's root filesystem and access the real host's temporary directory. The vulnerability requires the use of a custom BuildKit frontend to exploit, as it cannot be triggered while building standard Dockerfiles.
Users can upgrade to Docker BuildKit v0.31.2 or later to address this vulnerability. The issue only affects the low-level API, so it can be avoided by not using custom frontends that could send crafted requests to the BuildKit low-level build API.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2026References 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/security/advisories/GHSA-32pv-7hq5-qhwq | [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.31.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | Initial Analysis | [email protected] |
| Jul 21, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | New CVE Received | [email protected] |