Skip to main content

BuildKit CVE-2026-15791

| EUVDEUVD-2026-46310 LOW
Path Traversal (CWE-22)
2026-07-21 Docker
1.8
CVSS 4.0 · Vendor: Docker

Severity by source

Vendor (Docker) PRIMARY
1.8 LOW
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
5.0 MEDIUM

Local vector with scope change to host /tmp; no privileges required but user interaction (active build session) needed; no confidentiality impact, low integrity and availability.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L
4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N

Primary rating from Vendor (Docker).

CVSS VectorVendor: Docker

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
A
Scope
X

Lifecycle Timeline

4
Patch available
Jul 21, 2026 - 19:03 EUVD
CVSS changed
Jul 21, 2026 - 17:22 NVD
3.3 (LOW) 1.8 (LOW)
Analysis Generated
Jul 21, 2026 - 16:47 vuln.today
CVE Published
Jul 21, 2026 - 16:10 cve.org
LOW 3.3

DescriptionCVE.org

A crafted message in the BuildKit low-level build API can be used to remove the contents of the /tmp directory. The action that can normally be used to delete files inside the build container rootfs can escape into the real host temp directory.

AnalysisAI

Path traversal in BuildKit's low-level build API allows crafted messages to redirect the container rootfs file-deletion action onto the real host /tmp directory, wiping its contents. All published moby/buildkit versions are affected per the broad CPE cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:*. No public exploit code or active exploitation has been identified at time of analysis; the vendor-assigned CVSS score of 3.3 (CVSS 4.0) correctly reflects a constrained impact - host /tmp destruction rather than arbitrary code execution or credential exposure.

Technical ContextAI

BuildKit is Moby's low-level container image build engine, used as the backend for 'docker build' and similar tooling. It exposes a gRPC-based API that clients use to send build instructions, including file system operations against the build container's rootfs. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - 'Path Traversal'): the file-deletion operation fails to canonicalize or jail the target path, allowing a crafted path in the API message to traverse out of the container rootfs mount and resolve to the host filesystem's /tmp directory. The affected CPE cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:* covers all version branches, indicating the flaw is not version-range-limited. The CVSS 4.0 vector (AV:L/AT:P) confirms exploitation requires local access and a specific attack precondition - typically the ability to submit messages to the BuildKit daemon's low-level API, not just the high-level 'docker build' CLI.

RemediationAI

Upgrade to the patched BuildKit release identified in the GitHub Security Advisory at https://github.com/moby/buildkit/security/advisories/GHSA-32pv-7hq5-qhwq - the exact fix version is not confirmed from available data and must be taken directly from the advisory. As a compensating control pending upgrade, restrict access to the BuildKit low-level gRPC API socket (typically /run/buildkit/buildkitd.sock) to only trusted, authorized build clients; this trades off build flexibility for a reduced attack surface. Additionally, consider running the BuildKit daemon in rootless mode, which limits the blast radius of a host /tmp traversal since the effective 'host /tmp' visible to the daemon is scoped to the user's namespace. Do not expose the BuildKit API over a network listener (AV:L confirms the expected local vector) as a defense-in-depth measure.

More in Moby

View all
CVE-2023-28840 HIGH POC
8.7 Apr 04

Moby is an open source container framework developed by Docker Inc. Rated high severity (CVSS 8.7), this vulnerability i

CVE-2023-28841 MEDIUM POC
6.8 Apr 04

Moby is an open source container framework developed by Docker Inc. Rated medium severity (CVSS 6.8), this vulnerability

CVE-2024-36623 HIGH
8.1 Nov 29

moby through v25.0.3 has a Race Condition vulnerability in the streamformatter package which can be used to trigger mult

CVE-2018-12608 HIGH
7.5 Sep 10

An issue was discovered in Docker Moby before 17.06.0. Rated high severity (CVSS 7.5), this vulnerability is remotely ex

CVE-2026-15793 HIGH
7.3 Jul 21

Argument injection in Moby BuildKit lets a malicious Git source trigger crafted command invocation on the build host whe

CVE-2026-17106 HIGH
7.1 Aug 18

Tar extraction path traversal in moby/go-archive allows an attacker who controls archive contents to create or overwrite

CVE-2026-15789 MEDIUM
6.9 Jul 21

Path traversal in the BuildKit daemon allows a client with valid control API access to craft a malicious upload request

CVE-2023-28842 MEDIUM
6.8 Apr 04

Moby) is an open source container framework developed by Docker Inc. Rated medium severity (CVSS 6.8), this vulnerabilit

CVE-2024-36621 MEDIUM
6.5 Nov 29

moby v25.0.5 is affected by a Race Condition in builder/builder-next/adapters/snapshot/layer.go. Rated medium severity (

CVE-2024-36620 MEDIUM
6.5 Nov 29

moby v25.0.0 - v26.0.2 is vulnerable to NULL Pointer Dereference via daemon/images/image_history.go. Rated medium severi

CVE-2022-36109 MEDIUM
6.3 Sep 09

Moby is an open-source project created by Docker to enable software containerization. Rated medium severity (CVSS 6.3),

CVE-2021-41091 MEDIUM
6.3 Oct 04

Moby is an open-source project created by Docker to enable software containerization. Rated medium severity (CVSS 6.3),

Share

CVE-2026-15791 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy