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 coul...
id: GO-ID-PENDING
modules:
- module: github.com/moby/buildkit
versions:
- fixed: 0.28.1
vulnerable_at: 0.28.0
summary: BuildKit Git URL subdir component can cause access to restricted files in github.com/moby/buildkit
cves:
- CVE-2026-33748
ghsas:
- GHSA-4vrq-3vrq-g6gg
references:
- advisory: https://github.com/advisories/GHSA-4vrq-3vrq-g6gg
- advisory: https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg
- web: https://docs.docker.com/build/concepts/context/#url-fragments
- web: https://github.com/moby/buildkit/releases/tag/v0.28.1
source:
id: GHSA-4vrq-3vrq-g6gg
created: 2026-03-26T19:01:42.357373112Z
review_status: UNREVIEWED
Advisory GHSA-4vrq-3vrq-g6gg references a vulnerability in the following Go modules:
Description:
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 coul...
References:
Cross references:
See doc/quickstart.md for instructions on how to triage this report.