Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-33748

BuildKit Git URL subdir component can cause access to restricted files
Back to all
CVE

CVE-2026-33748

BuildKit Git URL subdir component can cause access to restricted files

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.2
-
4.0
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/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
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Related Resources

No items found.

References

https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg, https://nvd.nist.gov/vuln/detail/CVE-2026-33748, https://docs.docker.com/build/concepts/context/#url-fragments, https://github.com/moby/buildkit, https://github.com/moby/buildkit/releases/tag/v0.28.1

Severity

7.5

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.5
EPSS Probability
0.00032%
EPSS Percentile
0.09571%
Introduced Version
0,v0.0.0-20250829022439-81599425cbdf,v0.24.0-rc2,v0.0.0-20230816085755-6b27487fec53,v0.13.0-beta1,v0.0.0-20210520051304-3bdb6b5159ff,v0.9.0-rc1
Fix Available
0.28.1,v0.0.0-20260325103444-45b038cd0b2e,v0.28.1,1.44.0-r0,8.19.13-r2,9.2.7-r2,9.3.2-r1,8.19.13-r1,9.2.7-r3,9.3.2-r2,0.67.1-r2,0.67.1-r1,0.32.1-r3,5.1.1-r1,29.5.2-r0,1.1.0-r2,1.25.12-r1,4.0.5-r0,4.0.3-r2,2.16.0-r4,2.3.6-r0,5.4.0-r15,2.18.2-r1,2.18.2-r0,0.69.3-r6,0.69.3-r4,0.30.1-r4,0.30.1-r3,2.1.15-r4

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading