{"cve":"CVE-2026-33748","nvd":{"published":"2026-03-27T15:16:57.127","modified":"2026-10-26T21:10:00.170","status":"Analyzed","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.","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":8.2},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-22","CWE-59"],"references":["https://docs.docker.com/build/concepts/context/#url-fragments","https://github.com/moby/buildkit/releases/tag/v0.28.1","https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg"],"products":["mobyproject:buildkit"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-33748","score":0.00481,"percentile":0.41252,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-4vrq-3vrq-g6gg","url":"https://osv.dev/vulnerability/GHSA-4vrq-3vrq-g6gg","summary":"BuildKit Git URL subdir component can cause access to restricted files","modified":"2026-09-10T03:50:59.724878717Z","packages":[{"ecosystem":"Go","name":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","ranges":["<0.28.1"],"fixed":["0.28.1"]}]},{"id":"GO-2026-4859","url":"https://osv.dev/vulnerability/GO-2026-4859","summary":"BuildKit Git URL subdir component can cause access to restricted files in github.com/moby/buildkit","modified":"2026-03-28T15:59:16.681277Z","packages":[{"ecosystem":"Go","name":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","ranges":["<0.28.1"],"fixed":["0.28.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}