Vulnerability · Published Mar 27, 2026 · Assigned by GitHub_M

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

High 8.2

In plain English

A high-severity path traversal in buildkit from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.2High
Exploit odds (30 days)0.5%top 58.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24buildkit0.29.0-r0ALPINE-CVE-2026-33748
Alpine:v3.23docker29.3.1-r0ALPINE-CVE-2026-33748
Alpine:v3.24docker29.3.1-r0ALPINE-CVE-2026-33748
Debian:12docker.iono fix listedDEBIAN-CVE-2026-33748
Debian:13docker.io26.1.5+dfsg1-9+deb13u1DEBIAN-CVE-2026-33748
Debian:14docker.io28.5.2+dfsg4-3DEBIAN-CVE-2026-33748
Gogithub.com/moby/buildkit0.28.1GHSA-4vrq-3vrq-g6gg
Gogithub.com/moby/buildkit0.28.1GO-2026-4859
Ubuntu:25.10docker.iono fix listedUBUNTU-CVE-2026-33748
Ubuntu:26.04:LTSdocker.iono fix listedUBUNTU-CVE-2026-33748
Ubuntu:26.10docker.iono fix listedUBUNTU-CVE-2026-33748
Ubuntu:22.04:LTSdocker.io-app29.1.3-0ubuntu3~22.04.2UBUNTU-CVE-2026-33748
Ubuntu:24.04:LTSdocker.io-app29.1.3-0ubuntu3~24.04.2UBUNTU-CVE-2026-33748
Ubuntu:25.10docker.io-appno fix listedUBUNTU-CVE-2026-33748
Ubuntu:26.04:LTSdocker.io-app29.1.3-0ubuntu4.1UBUNTU-CVE-2026-33748
Ubuntu:26.10docker.io-app29.1.3-0ubuntu5UBUNTU-CVE-2026-33748

Affected products (as reported)

VendorProductVersions
moby buildkit < 0.28.1

Weakness: CWE-22, CWE-59 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References