Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/moby/buildkit
  4. ›
  5. CVE-2026-33748

CVE-2026-33748: BuildKit Git URL subdir component can cause access to restricted files

March 26, 2026 (updated April 24, 2026)

Insufficient validation of Git URL fragment subdir components (<url>#<ref>:<subdir>, docs) may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem.

References

  • docs.docker.com/build/concepts/context/
  • github.com/advisories/GHSA-4vrq-3vrq-g6gg
  • github.com/moby/buildkit/releases/tag/v0.28.1
  • github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg
  • nvd.nist.gov/vuln/detail/CVE-2026-33748

Code Behaviors & Features

Detect and mitigate CVE-2026-33748 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.28.1

Fixed versions

  • 0.28.1

Solution

Upgrade to version 0.28.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

go/github.com/moby/buildkit/CVE-2026-33748.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:31 +0000.