
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-15791 is a path traversal vulnerability in Moby's BuildKit that allows a crafted message in the low-level build API to escape the build container's rootfs and remove the contents of the host's /tmp directory. It was published on July 16, 2026, by Docker maintainer tonistiigi, and affects BuildKit versions 0.10.0 through 0.31.1. The patched version is v0.31.2+. It carries a CVSS v4.0 base score of 1.8 (Low) per NVD, and 3.3 (Low) per ENISA/EUVD (GitHub Advisory).
The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory — Path Traversal). BuildKit's low-level LLB (Low-Level Builder) file operation API includes an action for deleting files within the build container's rootfs; due to insufficient path validation, a specially crafted API message can cause this delete operation to traverse outside the container boundary and target the real host /tmp directory. Exploitation requires an attacker to interact with the low-level BuildKit API directly — it cannot be triggered through standard Dockerfile builds and requires use of a custom BuildKit frontend or direct API access (GitHub Advisory).
Successful exploitation allows an attacker to delete the contents of the host system's /tmp directory, resulting in a limited integrity and availability impact on the host. Confidentiality is not affected, as the vulnerability enables file deletion rather than data exfiltration. The scope is constrained to the /tmp directory and does not provide arbitrary code execution or broader filesystem access, limiting the potential for lateral movement or privilege escalation (GitHub Advisory).
../ sequences) designed to escape the container rootfs boundary and resolve to the host's /tmp directory./tmp directory, removing its contents and potentially disrupting host processes or services that rely on temporary files (GitHub Advisory)./tmp on the BuildKit host, particularly originating from the BuildKit daemon process; BuildKit API logs showing unusual LLB file operation requests with path traversal patterns (e.g., ../ sequences in file paths)./tmp directory without a corresponding legitimate build or cleanup process.buildkitd) performing file system operations outside expected container rootfs paths, particularly write/delete operations on host /tmp.The vulnerability is fixed in BuildKit v0.31.2+; users should upgrade immediately. As a workaround, the issue only affects the low-level BuildKit API and cannot be reached through standard Dockerfile builds — restricting access to the BuildKit API and avoiding the use of untrusted custom BuildKit frontends effectively mitigates the risk without upgrading. Organizations should audit which services or users have direct access to the BuildKit low-level API (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."