Path traversal in BuildKit - CVE-2026-15791

 

Path traversal in BuildKit - CVE-2026-15791

Published: November 18, 2026


Vulnerability identifier: #VU167114
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-15791
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to delete the contents of the host /tmp directory.

The vulnerability exists due to path traversal in BuildKit's low-level build API file operation when processing file deletion requests intended for the build container rootfs. A remote user can submit a crafted message through a custom BuildKit frontend to escape the container filesystem and delete host temporary files; ordinary Dockerfile builds cannot reach this operation.


Affected software

BuildKit

How to mitigate CVE-2026-15791

Install security update from vendor's website.

BuildKit - update to 0.31.2

External References

Related Security Bulletins