SB20261118168 - Multiple vulnerabilities in BuildKit
Published: November 18, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 5 vulnerabilities.
1) Argument injection (CVE-ID: CVE-2026-15793)
CWE-ID: CWE-88 - Argument Injection or Modification
CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to execute arbitrary commands on the BuildKit host.
The vulnerability exists due to improper neutralization of argument delimiters in BuildKit Git source checkout when processing bundle files with git.checkoutbundle=true through a custom frontend or a client using the raw low-level API. A remote attacker can supply a malicious Git source to inject arguments into a host command invocation and execute unintended commands.
2) Input validation error (CVE-ID: CVE-2026-15792)
CWE-ID: CWE-20 - Improper input validation
CVSSv4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote user to cause a denial of service by crashing the BuildKit daemon.
The vulnerability exists due to improper input validation in the BuildKit daemon when processing requests containing incorrect parameters from a client or frontend. A remote user can send a specially crafted request through a malicious BuildKit client or frontend to trigger a panic and terminate the daemon.
3) Path traversal (CVE-ID: CVE-2026-15791)
CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSSv4: 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]
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.
4) Path traversal (CVE-ID: CVE-2026-15789)
CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSSv4: 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]
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.
5) Link following (CVE-ID: CVE-2026-15788)
CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to read arbitrary host files accessible to the BuildKit daemon process.
The vulnerability exists due to improper link resolution in BuildKit's Windows container cache mount source selector when resolving NTFS junctions outside the cache root. A remote attacker can craft a build that uses such junctions and induce its execution on a Windows container-configured daemon to disclose host file contents.
Remediation
Install update from vendor's website.
References
- https://github.com/moby/buildkit/security/advisories/GHSA-hw3h-2gp9-cxpv
- https://github.com/moby/buildkit/security/advisories/GHSA-qx3x-mv6r-52p6
- https://github.com/moby/buildkit/security/advisories/GHSA-32pv-7hq5-qhwq
- https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976
- https://github.com/moby/buildkit/security/advisories/GHSA-388v-wmr2-g2v2