CVE-2026-15791

LLB file operation can be tricked to remove /tmp directory contents

Published Jul 21, 2026 CVSS 4.0 · 3.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
Docker
Published
Updated
Jul 21, 2026, 5:08 PM
Reserved
Jul 14, 2026, 7:30 PM
Status
Analyzed
Published
Jul 21, 2026, 5:17 PM
Modified
Oct 24, 2026, 7:10 PM