Skip to main content

Docker CVE-2026-33748

HIGH
Path Traversal (CWE-22)
2026-03-26 https://github.com/moby/buildkit GHSA-4vrq-3vrq-g6gg
8.2
CVSS 4.0 · Vendor: https://github.com/moby/buildkit
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker compromises or creates Git repository
  2. Delivery
    Plants symlinks to sensitive files
  3. Exploit
    Victim initiates build with git://url#ref:symlink-subdir
  4. Install
    BuildKit clones repo and follows symlink
  5. C2
    Files outside repo root copied to build context
  6. Execute
    Attacker's Dockerfile exfiltrates files into image
  7. Impact
    Image pushed to registry
  8. Step 8
    Attacker pulls image and extracts data

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 the victim to initiate a Docker or BuildKit image build using a Git URL with a subdir fragment component (the git://repository#ref:subdirectory syntax documented at docs.docker.com/build/concepts/context/#url-fragments). The attacker must control or have compromised the target Git repository to plant symbolic links pointing outside the repository root. The BuildKit process must have filesystem-level read access to the target files (limited to the same mounted filesystem as the Git checkout directory), meaning targets are typically files accessible to the Docker daemon's user context. Exploitation does NOT work against repositories using only the ref component without subdir (git://repo#branch) or against local filesystem build contexts. User interaction is required in the form of a developer or automated system executing a docker build or buildctl command with the malicious Git URL. Default Docker configurations are vulnerable if the Git URL syntax is used; no non-default settings are required. Attack complexity is low (AC:L) once the attacker convinces the victim to build from the malicious URL, but the attack requirement (AT:P) reflects the need for specific developer action.

Impact

Real-world risk is moderate despite the 8.2 CVSS score. The CVSS:4.0 vector indicates network-accessible (AV:N), low complexity (AC:L), but present attack requirements (AT:P) with no privileges or user interaction needed (PR:N/UI:N), resulting in high confidentiality impact to the vulnerable system (VC:H) with no integrity or availability impact. However, multiple limiting factors reduce practical exploitability: the attack requires the victim to build a Dockerfile using a Git URL with subdir syntax from an attacker-controlled or compromised repository, which is not a default workflow. EPSS score of 0.02% (4th percentile) indicates security researchers and attackers assess actual exploitation likelihood as very low, likely because the attack scenario requires specific developer behavior (initiating a build with attacker-influenced Git URLs). No public exploit identified at time of analysis and not listed in CISA KEV, suggesting no widespread or targeted exploitation campaigns. SSVC analysis yields Medium priority: exploitation status is None, the vulnerability is not automatable (requires victim to trigger build), technical impact is Partial (confidentiality only, limited to same filesystem), but situated on a widely-deployed critical infrastructure component. Primary risk is in CI/CD environments that automatically build from external Git repositories without URL validation, or supply chain attacks where developers are socially engineered to build from malicious repositories.

Exploit ScenarioDerived

An attacker publishes or compromises a Git repository containing a Dockerfile and crafts a malicious symbolic link in the repository that points to sensitive files outside the repository root (e.g., /etc/passwd, SSH keys, cloud credentials in /root/.aws). The attacker then socially engineers a victim developer or tricks a CI/CD system into building a container image using a Git URL with a crafted subdir fragment that references the malicious symlink, such as git://attacker-repo#main:malicious-symlink-dir. When BuildKit processes this URL, it clones the repository, follows the symlink without proper boundary validation, and includes the out-of-bounds files in the build context. The attacker's Dockerfile uses COPY or ADD instructions to embed these exfiltrated files into the resulting container image, which is then pushed to a registry where the attacker can pull and extract the sensitive data. Publicly available exploit code exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Apr 20, 2026

Path traversal in Moby BuildKit allows remote unauthenticated attackers to read files outside Git repository roots during Docker image builds using crafted URL fragments. Affects builds using Git URLs with subdir components (e.g., git://repo#ref:subdir syntax). Exploitation probability is low (EPSS 2%, 4th percentile) with no public exploit identified at time of analysis. Vendor-released patch available in BuildKit v0.28.1.

Earlier versions of this analysis (1)
v1 Mar 26, 2026 - 18:30 CVSS 8.2

Moby BuildKit versions prior to v0.28.1 allow directory traversal attacks through maliciously crafted Git URL fragment subdir components, enabling attackers to access files outside the intended Git repository root during Docker builds. The path traversal is constrained to the same mounted filesystem but bypasses intended repository boundaries when processing Git URLs with subpath fragments. No public exploit identified at time of analysis, though exploitation requires only the ability to specify or influence Git URLs used in build contexts.

RemediationAI

Upgrade Moby BuildKit to version v0.28.1 or later, available at github.com/moby/buildkit/releases/tag/v0.28.1. For Docker Desktop and Docker Engine users, apply the corresponding Docker release that bundles BuildKit v0.28.1 or later (check release notes for version mapping). If immediate patching is not feasible, implement strict input validation on Git URLs used in build contexts: specifically, prohibit or sanitize the subdir fragment component (the portion after the colon in git://url#ref:subdir syntax) when building from external or untrusted repositories. In CI/CD pipelines, restrict Git URL sources to an allowlist of trusted repositories and reject builds with subdir components from sources outside this allowlist. For high-security environments, disable Git URL build contexts entirely and require builds to use only pre-cloned local directories where filesystem boundaries can be enforced by the host OS. Note that disabling Git URL contexts may break existing build workflows that rely on this convenience feature. For SUSE Linux Enterprise environments, apply SUSE-SU-2026:1205 patch through standard update channels (zypper update).

Affected Packages

go github.com/moby/buildkit fix: 0.28.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Moby BuildKit is the build engine used by Docker and other container platforms to construct container images from Dockerfiles. When BuildKit processes a Git URL as build context, it supports RFC-compliant URL fragment syntax to specify a Git reference and subdirectory (git://repository#branch:subdirectory). The vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) stems from insufficient validation of the subdirectory component in these URL fragments. An attacker can craft a malicious subdir value pointing to a symbolic link that references files outside the cloned repository root. Because BuildKit follows these symlinks without proper boundary checks, it exposes files on the same mounted filesystem that should be isolated from the build context. The affected component is the Go package github.com/moby/buildkit, which handles the parsing and checkout of Git-based build contexts before executing Dockerfile instructions.

Know when Docker 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

Vendor (https://github.com/moby/buildkit) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (https://github.com/moby/buildkit).

CVSS VectorVendor: https://github.com/moby/buildkit

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 20, 2026 - 12:57 vuln.today
v2 - CVSS changed
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 26, 2026 - 18:27 nvd
HIGH 8.2

DescriptionCVE.org

Impact

Insufficient validation of Git URL fragment subdir components (<url>#<ref>:<subdir>, docs) may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem.

Patches

The issue has been fixed in version v0.28.1

Workarounds

The issue affects only builds that use Git URLs with a subpath component. Avoid building Dockerfiles from untrusted sources or using the subdir component from an untrusted Git repository where the subdir component could point to a symlink.

Executive ViewAI

Why It Matters

CVE-2026-33748 is a path traversal vulnerability in Moby BuildKit that allows unauthenticated attackers to read arbitrary files outside Git repository boundaries during Docker image builds, potentially exposing sensitive source code, credentials, or configuration data embedded in build contexts. Organizations using Docker with Git-based builds must patch immediately to prevent unauthorized information disclosure during the CI/CD pipeline.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not possible: restrict Git URL-based builds to internal repositories only; disable BuildKit's git:// protocol support and require authenticated Git credential providers; implement network segmentation to limit build container file system access; enable build log auditing and monitor for path traversal patterns in build commands.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

pkg:go/github.com_moby_buildkit

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 12 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

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