{"id":"GHSA-4vrq-3vrq-g6gg","revision":"a38952bb2da845059336e9cec6af6b0e","records":[{"revision":"a38952bb2da845059336e9cec6af6b0e","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-4vrq-3vrq-g6gg","aliases":["CVE-2026-33748","GO-2026-4859"],"title":"BuildKit Git URL subdir component can cause access to restricted files","description":"### 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.","state":0,"publishedAt":"2026-03-26T18:27:49+00:00","modifiedAt":"2026-09-10T03:50:59.7248787+00:00","affected":[{"ecosystem":"Go","name":"github.com/moby/buildkit","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.28.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg","https://nvd.nist.gov/vuln/detail/CVE-2026-33748","https://docs.docker.com/build/concepts/context/#url-fragments","https://github.com/moby/buildkit","https://github.com/moby/buildkit/releases/tag/v0.28.1"],"sourceUrl":"https://github.com/advisories/GHSA-4vrq-3vrq-g6gg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4vrq-3vrq-g6gg","identifiers":["GHSA-4vrq-3vrq-g6gg","CVE-2026-33748","GO-2026-4859"]},"retained":false,"historicalAffected":[]}],"coverage":[]}