CVE-2026-33748 Details
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.
A vulnerability in Docker BuildKit prior to version 0.28.1 allows insufficiently validated Git URL subdirectory components to access files outside the checked-out repository root. This issue is limited to files on the same mounted filesystem and only affects builds using Git URLs with a subpath component.
Users can upgrade to Docker BuildKit version 0.28.1 or later to address this vulnerability. When using Git URLs with subdirectory components, ensure that the repository is trusted and that the subdirectory does not point to a symlink.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.docker.com/build/concepts/context/#url-fragments | [email protected] | Product |
| https://github.com/moby/buildkit/releases/tag/v0.28.1 | [email protected] | ProductRelease Notes |
| https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mobyproject buildkit | < 0.28.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | Initial Analysis | [email protected] |
| Mar 27, 2026 | New CVE Received | [email protected] |