CVE-2026-33748: BuildKit Git URL subdir component can cause access to restricted files
Vulnerability summary
CVE-2026-33748 is a high (CVSS 8.2) vulnerability in moby buildkit. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 41.5% of scored vulnerabilities.
Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 7Timeline
- 27-03-2026PublishedVulnerability first disclosed.
- 27-03-2026Last modifiedVulnerability information updated.
Description
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to version 0.28.1, insufficient validation of Git URL fragment subdir components may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem. The issue has been fixed in version v0.28.1 The issue affects only builds that use Git URLs with a subpath component. As a workaround, 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.
CVSS metrics
11 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · GoEcosystem advisory · calculated8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST8.2HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/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
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
Decrease -0.05 pp
From 0.53% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted DirectoryThe product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-59Improper Link Resolution Before File AccessThe product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard51 products
- buildah< 1.44.0-r0
- buildah-fips< 1.44.0-r0
- cloudbeat-8.17All versions (No fix recorded)
- cloudbeat-8.18All versions (No fix recorded)
- cloudbeat-8.19< 8.19.13-r2
Wolfi18 products
- buildah< 1.44.0-r0
- conftest< 0.67.1-r2
- docker-cli-buildx< 0.32.1-r3
- docker-compose< 5.1.1-r1
- dockerd-28All versions (No fix recorded)
Alpine2 products
- buildkit< 0.29.0-r0
- docker< 29.3.1-r0
Ubuntu2 products
- docker.ioAll versions (No fix recorded)
- docker.io-app< 26.1.3-0ubuntu1~20.04.1+esm2 | < 29.1.3-0ubuntu3~22.04.2 | < 29.1.3-0ubuntu3~24.04.2 | All versions (No fix recorded) | < 29.1.3-0ubuntu5 | < 29.1.3-0ubuntu4.1
Debian1 product
- docker.ioAll versions (No fix recorded) | < 26.1.5+dfsg1-9+deb13u1 | < 28.5.2+dfsg4-3
Github.com/moby1 product
- buildkit< 0.28.1
Moby1 product
- buildkit< 0.28.1
Mobyproject1 product
- buildkit< 0.28.1
8 vendors · 77 products
References
11 links- github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6ggX Refsource CONFIRMREPORTAdvisoryWEBMitigationVendor Advisory
- github.com/moby/buildkitPACKAGE