Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain BuildKit API credentials or socket access
-
DeliveryConnect to buildkitd control socket
-
ExploitCraft upload request with path traversal payload
-
ExecutionSubmit malicious build context to daemon
-
PersistDaemon writes files outside state directory
-
ImpactOverwrite host files for persistence or sabotage
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local access to the host running the BuildKit daemon (AV:L) and valid permissions to issue requests to the BuildKit control API (PR:L), such as membership in the group authorized to access the buildkitd socket or possession of a valid mTLS client certificate. The description explicitly states the client must be able to 'bypass authentication' or otherwise hold legitimate API access to issue builds. Exploitation is constrained to: (1) authenticated or authorized BuildKit API clients only - anonymous network attackers cannot exploit this; (2) local or socket-adjacent access - remote exploitation requires prior compromise of a build-authorized identity; (3) all tracked moby/buildkit versions per CPE wildcard, but only on systems where buildkitd is running and accessible. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H) signals a locally exploitable flaw requiring low-privilege API access with no complexity or user-interaction barriers once access is established - resulting in a 6.9 Medium score. The local attack vector (AV:L) substantially limits the threat compared to a network-reachable vulnerability: an attacker must already operate on the same host or have network-level reach to the BuildKit socket. The PR:L requirement means the attacker must hold valid BuildKit control API credentials or permissions, ruling out fully anonymous exploitation. No EPSS score was supplied, no CVE is listed in CISA KEV, and no public proof-of-concept has been identified, making this a credible but not currently weaponized risk. The high integrity (VI:H) and availability (VA:H) impacts are meaningful in CI/CD contexts where arbitrary file writes on a build host could plant malicious artifacts or destabilize the build agent. There is no confidentiality impact (VC:N), which limits the direct data-exfiltration risk. |
| Exploit ScenarioDerived | An attacker with legitimate access to the BuildKit control API - such as a compromised CI/CD pipeline runner or a malicious contributor with build-trigger permissions - crafts an upload request embedding path traversal sequences in the file destination path. BuildKit processes the request without stripping traversal components, writing attacker-controlled content to an arbitrary location on the host filesystem beyond the state directory. This could be used to overwrite startup scripts, inject payloads into shared library paths, or corrupt other build artifacts on a shared build host. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 21, 2026
Path traversal in the BuildKit daemon allows a client with valid control API access to craft a malicious upload request that writes files outside the BuildKit-controlled state directory, breaking container build sandbox boundaries. Affected products span all tracked versions of moby/buildkit per CPE data, and the vulnerability carries a CVSS 4.0 score of 6.9 with high integrity and availability impact on the vulnerable system. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Consult the Docker/Moby security advisory at https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976 for the exact patched release version - a specific fix version was not independently confirmed from available input data. Upstream fix availability should be assumed pending advisory review. As a compensating control, restrict access to the BuildKit daemon socket (typically /run/buildkit/buildkitd.sock) to only trusted, explicitly authorized users or service accounts, reducing the population of principals capable of issuing crafted upload requests. In Kubernetes environments, enforce pod security admission policies that limit which workloads can mount the BuildKit socket. Avoid exposing the buildkitd gRPC endpoint over a network interface without mutual TLS authentication, since the daemon's local socket model is the primary intended isolation boundary.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
BuildKit (CPE: cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:*) is Moby's next-generation container image build engine, used as the backend for 'docker buildx' and many CI/CD pipelines. It exposes a gRPC-based control API (buildkitd daemon) through which clients submit build contexts and transfer files. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) identifies the root cause: upload request paths are not sufficiently sanitized, so traversal sequences (e.g., '../') can resolve to locations outside the daemon's designated state directory. This breaks the file-system isolation that BuildKit relies on to safely handle untrusted build inputs.
Know when Buildkit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Local socket access with low privileges required; high integrity and availability impact from unrestricted file writes; no confidentiality impact per description and CVSS 4.0 VC:N.
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (Docker).
CVSS VectorVendor: Docker
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. R
Cache poisoning in BuildKit lets a malicious image advertise DiffIDs that do not match its actual layer contents, so a d
Argument injection in Moby BuildKit lets a malicious Git source trigger crafted command invocation on the build host whe
Denial of service in Moby BuildKit allows a low-privileged remote user to crash the BuildKit daemon by submitting a buil
Denial of service in Moby BuildKit allows anyone able to submit an LLB build definition to a buildkitd daemon to panic a
Denial of service in the BuildKit Dockerfile frontend (buildkitd) allows a user who can submit a build context to exhaus
Denial of service in Docker BuildKit (moby/buildkit) allows a malicious or compromised client or frontend to crash the B
BuildKit (moby/buildkit) contains a policy-validation bypass in which a specially crafted Git source build step makes a
BuildKit, the container build engine used by Docker and exposed through `docker build`/buildx, can be tricked into perfo
BuildKit can cache a fetched snapshot under a claimed content digest without adequately verifying that the blob bytes ma
Moby BuildKit (all versions in the affected range per the unbounded CPE cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:*) can be
A malicious external BuildKit frontend can issue crafted requests against the daemon's internal API that trigger a data
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Micro 6.0 | Affected |
| SUSE Linux Micro 6.1 | Affected |
| openSUSE Leap 16.0 | Affected |
EUVD-2026-46309
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB