CVE-2026-33748
BuildKit Git URL subdir component can cause access to restricted files
Reported by github_m · Published March 27, 2026
github.com/moby/buildkit is fixed in 0.28.1 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/moby/buildkit | Go Modules | 0.28.1 |
| docker-cli-buildx-fips | Chainguard | 0.32.1-r3 |
| buildah-fips | Chainguard | 1.44.0-r0 |
| conftest | Wolfi | 0.67.1-r2 |
| zot | Chainguard | 2.1.15-r4 |
| docker-fips-29 | Chainguard | 29.5.2-r0 |
| docker-compose | Chainguard | 5.1.1-r1 |
| kaniko | Wolfi | 1.25.12-r1 |
| kubescape | Chainguard | 4.0.5-r0 |
| trivy-fips | Chainguard | 0.69.3-r4 |
| scorecard | Wolfi | 5.4.0-r15 |
| buildkit | Alpine | 0.29.0-r0 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| moby | buildkit | < 0.28.1 |
| chainguard | docker-cli-buildx-fips | 0 |
| chainguard | buildah-fips | 0 |
| wolfi | conftest | 0 |
| chainguard | zot | 0 |
| chainguard | docker-fips-29 | 0 |
| chainguard | docker-compose | 0 |
| wolfi | kaniko | 0 |
| chainguard | kubescape | 0 |
| chainguard | trivy-fips | 0 |
| wolfi | scorecard | 0 |
| alpine | buildkit | 0 |
| chainguard | skaffold-fips | 0 |
| chainguard | buildah | 0 |
| chainguard | kaniko | 0 |
| chainguard | cloudbeat-9.2 | 0 |
| wolfi | osv-scanner | 0 |
| wolfi | docker-compose | 0 |
| chainguard | livekit-cli | 0 |
| chainguard | cloudbeat-8.19 | 0 |
…and 34 more
Timeline
- Mar 25, 2026 CVE Published
- Mar 27, 2026 Coalition ESS Score (2 in total, the first dated here)
- Mar 27, 2026 PoC Published
- Mar 28, 2026 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Security Advisory (21 in total, the first dated here)
- Aug 5, 2026 CVE Updated
- Aug 11, 2026 Distribution Patch (14 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-33748
vulnetix vdb fixes CVE-2026-33748
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-33748/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg x_refsource_CONFIRM
- https://docs.docker.com/build/concepts/context/#url-fragments x_refsource_MISC
- https://github.com/moby/buildkit/releases/tag/v0.28.1 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-33748 advisory
- https://github.com/advisories/GHSA-4vrq-3vrq-g6gg advisory
- https://github.com/moby/buildkit url