# CVE-2026-33748: BuildKit Git URL subdir component can cause access to restricted files

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-03-26T18:27:49.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-4vrq-3vrq-g6gg, GO-2026-4859
- Related: CGA-r9hm-hvvg-v779
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- moby buildkit: < 0.28.1
- github.com/moby/buildkit (Go): before 0.28.1
- mobyproject buildkit: before 0.28.1

## Every score

- GitHub_M: CVSS:4.0 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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg> (advisory, mitigation, vendor-advisory, web)
- <https://docs.docker.com/build/concepts/context/#url-fragments> (product, web)
- <https://github.com/moby/buildkit/releases/tag/v0.28.1> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33748> (advisory)
- <https://github.com/moby/buildkit> (package)

## Sources

- CVE List: [CVE-2026-33748](https://www.cve.org/CVERecord?id=CVE-2026-33748), CVE Terms of Use, modified 2026-03-27
- GitHub Advisory Database: [GHSA-4vrq-3vrq-g6gg](https://github.com/advisories/GHSA-4vrq-3vrq-g6gg), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-4859](https://pkg.go.dev/vuln/GO-2026-4859), CC-BY-4.0, modified 2026-03-28
- NVD: [CVE-2026-33748](https://nvd.nist.gov/vuln/detail/CVE-2026-33748), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-33748 · Whole record: https://cve.day/CVE-2026-33748.json · Rebuilt by cve.day 2026-11-25T22:59:17.388Z
