Skip to main content
← All vulnerabilities
CVE-2026-33748GO-2026-4859GHSA-4VRQ-3VRQ-G6GG

BuildKit Git URL subdir component can cause access to restricted files

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.28.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • moby buildkit

    fixed in 0.28.1

  • github.com/moby/buildkitGo

    fixed in 0.28.1

References 3

GitHub · moby/buildkit

docs.docker.com