CVE-2026-33748

BuildKit Git URL subdir component can cause access to restricted files

HIGH
7.5
CVSS Score
Published: March 27, 2026 at 02:00 PM UTC
Updated: June 17, 2026 at 10:38 AM UTC
2 products affected across 2 vendorsBuildkitBuildKit

Using buildkit by moby?

Get instant alerts when new vulnerabilities affect buildkit - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.28.1
Affected range stops below 0.28.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_CONFIRMMitigationVendor Advisory
Source: cverecord
https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/moby/buildkit/releases/tag/v0.28.1

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22CWE-59

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card