{"id":"GHSA-4vrq-3vrq-g6gg","summary":"BuildKit Git URL subdir component can cause access to restricted files","details":"### Impact\nInsufficient validation of Git URL fragment subdir components (`\u003curl\u003e#\u003cref\u003e:\u003csubdir\u003e`, [docs](https://docs.docker.com/build/concepts/context/#url-fragments)) may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem.\n\n### Patches\nThe issue has been fixed in version v0.28.1\n\n### Workarounds\nThe 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.","aliases":["CVE-2026-33748","GO-2026-4859"],"modified":"2026-07-17T21:16:12.001941992Z","published":"2026-03-26T18:27:49Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-03-26T18:27:49Z","nvd_published_at":"2026-03-27T15:16:57Z","cwe_ids":["CWE-22","CWE-59"],"severity":"HIGH"},"references":[{"type":"WEB","url":"https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33748"},{"type":"WEB","url":"https://docs.docker.com/build/concepts/context/#url-fragments"},{"type":"PACKAGE","url":"https://github.com/moby/buildkit"},{"type":"WEB","url":"https://github.com/moby/buildkit/releases/tag/v0.28.1"}],"affected":[{"package":{"name":"github.com/moby/buildkit","ecosystem":"Go","purl":"pkg:golang/github.com/moby/buildkit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.28.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-4vrq-3vrq-g6gg/GHSA-4vrq-3vrq-g6gg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V4","score":"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"}]}