What’s Vulnerable › Vulnerabilities

CVE-2026-15789: Malicious client can bypass destination directory validation on local sources upload

Description

A custom client can produce such an upload request to the BuildKit daemon that files can escape from the BuildKit-controlled state directory. The client needs to have valid permissions to access the BuildKit control API to issue builds, e.g., bypass authentication, etc.

Affected products

How to fix

Upgrade to a fixed version: moby BuildKit 0.31.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-15789 or the next vulnerability affects your stack