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.
Published: 2026-07-21
Score: 3.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A crafted message to the BuildKit low‑level build API can cause the host's /tmp directory contents to be deleted. The vulnerability exploits path traversal (CWE‑22), letting an attacker delete temporary files that are not part of the build container. Deleting these files can lead to loss of data, interruption of cleanup processes, and potential breaching of script execution that relies on temporary files, thereby causing a denial of service or other unintended behavior on the host.

Affected Systems

The affected product is Moby BuildKit, as identified by the CNA vendor. No specific version information is provided in the advisory, so all current releases are potentially vulnerable unless a later patch removes the issue.

Risk and Exploitability

The CVSS score of 3.3 indicates low severity, and the EPSS score of less than 1% shows a very low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog, further indicating that widespread exploitation is not currently documented. Based on the description, it is inferred that exploitation requires sending a crafted LLB message to the BuildKit low‑level API, which is not normally exposed during standard Dockerfile builds. The reported workaround suggests that the issue is confined to the low‑level API and cannot be reached by standard Dockerfile operations, reducing the practical risk to environments that do not expose or use the low‑level interface.

Generated by OpenCVE AI on July 30, 2026 at 17:09 UTC.

Remediation

Vendor Workaround

The issue only affects the low-level API and can not be reached when building Dockerfiles. Using a custom BuildKit frontend would be needed to make such a crafted request.


OpenCVE Recommended Actions

  • Restrict access to the BuildKit low‑level API to trusted users or services only, for example by firewalling the API endpoint or using socket‑level permissions.
  • Follow the official workaround: Deploy a custom BuildKit frontend that sanitizes LLB messages and blocks path traversal before the request reaches the BuildKit engine.
  • Continuously monitor BuildKit logs for suspicious LLB activities and review any authn logs for unauthorized API usage.

Generated by OpenCVE AI on July 30, 2026 at 17:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 21 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit

Tue, 21 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title LLB file operation can be tricked to remove /tmp directory contents
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 3.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Docker

Published:

Updated: 2026-07-21T17:08:54.555Z

Reserved: 2026-07-14T19:30:08.561Z

Link: CVE-2026-15791

cve-icon Vulnrichment

Updated: 2026-07-21T17:08:39.627Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T17:15:12Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')