CVE-2026-33748
highpriority · track · 30EPSS 0.005 · 41 %ileDEEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.6–8.2
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (55)
Products and version ranges known to be affected.
- Red Hat OpenShift API for Data Protectionall versionscert_bundDEcpe:/a:redhat:openshift:api_for_data_protection
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-0873docker: Mehrere SchwachstellenDeutsch2026-03-25csaf · cert_bundDE
Ein lokaler Angreifer kann mehrere Schwachstellen in docker ausnutzen, um Sicherheitsvorkehrungen zu umgehen und Informationen offenzulegen.
- GHSA-4vrq-3vrq-g6ggBuildKit Git URL subdir component can cause access to restricted files2026-03-26ghsa · osvUS
### Impact Insufficient 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. ### Patches The issue has been fixed in version v0.28.1 ### Workarounds The 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.
- GO-2026-4859BuildKit Git URL subdir component can cause access to restricted files in github.com/moby/buildkit2026-03-27vendor · osvUS
BuildKit Git URL subdir component can cause access to restricted files in github.com/moby/buildkit
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://docs.docker.com/build/concepts/context/#url-fragmentscnnvd
- https://github.com/moby/buildkit/releases/Patchcnnvd
- https://github.com/moby/buildkit/releases/tag/v0.28.1cnnvd
- https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6ggcnnvd
- https://vigilance.fr/vulnerability/Docker-Buildkit-directory-traversal-via-URL-Subdir-50199cnnvd
- https://docs.docker.com/build/concepts/context/#url-fragmentsenisa_euvd
- https://github.com/moby/buildkit/releases/tag/v0.28.1enisa_euvd
- https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6ggenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan