Path traversal in BuildKit - CVE-2026-15789

 

Path traversal in BuildKit - CVE-2026-15789

Published: November 18, 2026


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

Vulnerability details

The vulnerability allows a remote user to write files outside the BuildKit-controlled state directory.

The vulnerability exists due to improper pathname restriction in the BuildKit daemon's local source upload handling when validating destination directories. A remote user can submit a crafted upload request through a custom client with permission to issue builds through the control API to place files outside the intended directory.


Affected software

BuildKit

How to mitigate CVE-2026-15789

Install security update from vendor's website.

BuildKit - update to 0.31.2

External References

Related Security Bulletins