Skip to content

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

Low
tonistiigi published GHSA-32pv-7hq5-qhwq Jul 16, 2026

Package

No package listed

Affected versions

<= v0.31.1

Patched versions

v0.31.2+

Description

Impact

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.

Patches

The issue has been fixed in v0.31.2+

Workarounds

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.

References

Severity

Low

CVE ID

CVE-2026-15791

Weaknesses

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

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Learn more on MITRE.

Credits