CVE-2026-15789 Details
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.
A directory traversal vulnerability has been identified in Docker BuildKit versions through v0.31.1. This issue allows a custom client to craft an upload request that can manipulate file locations, causing files to escape from the designated BuildKit state directory. Exploitation requires valid permissions to access the BuildKit control API, potentially allowing unauthorized builds.
Users can upgrade to Docker BuildKit version v0.31.2 or later to address this vulnerability. It is also recommended to use trusted BuildKit clients, such as Docker Buildx or Buildctl, especially when running a BuildKit service that may involve untrusted users.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mobyproject buildkit | < 0.31.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | Initial Analysis | [email protected] |
| Jul 21, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | New CVE Received | [email protected] |