{"schema_version":"1.7.5","id":"GHSA-4vrq-3vrq-g6gg","published":"2026-03-26T18:27:49Z","modified":"2026-05-05T15:56:18.980269Z","aliases":["CVE-2026-33748","GO-2026-4859"],"related":["CGA-r9hm-hvvg-v779"],"summary":"BuildKit Git URL subdir component can cause access to restricted files","details":"### Impact\nInsufficient validation of Git URL fragment subdir components (`<url>#<ref>:<subdir>`, [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.","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"}}],"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"}],"database_specific":{"cwe_ids":["CWE-22","CWE-59"],"github_reviewed":true,"github_reviewed_at":"2026-03-26T18:27:49Z","nvd_published_at":"2026-03-27T15:16:57Z","severity":"HIGH"},"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"}]}