CVE-2026-33748BuildKit Git URL subdir component can cause access to restricted files
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.
What to do
Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | docker.io | Fix pending | UBUNTU-CVE-2026-33748 | |
| Ubuntu 26.10 | docker.io-app | Fixed | 29.1.3-0ubuntu5 | UBUNTU-CVE-2026-33748 |
| Ubuntu 26.04 | docker.io | Fix pending | UBUNTU-CVE-2026-33748 | |
| Ubuntu 26.04 | docker.io-app | Fixed | 29.1.3-0ubuntu4.1 | UBUNTU-CVE-2026-33748 |
| Ubuntu 25.10 | docker.io | Will not fix Traditionally the docker.io source package contained both the library and docker application. However, in releases that contain the docker.io-app source… | UBUNTU-CVE-2026-33748 | |
| Ubuntu 25.10 | docker.io-app | Will not fix Traditionally the docker.io source package contained both the library and docker application. However, in releases that contain the docker.io-app source… | UBUNTU-CVE-2026-33748 | |
| Ubuntu 24.04 | docker.io | Fix pending | UBUNTU-CVE-2026-33748 | |
| Ubuntu 24.04 | docker.io-app | Fixed | 29.1.3-0ubuntu3~24.04.2 | UBUNTU-CVE-2026-33748 |
| Ubuntu 22.04 | docker.io | Fix pending | UBUNTU-CVE-2026-33748 | |
| Ubuntu 22.04 | docker.io-app | Fixed | 29.1.3-0ubuntu3~22.04.2 | UBUNTU-CVE-2026-33748 |
| Ubuntu 20.04 | docker.io | Fix pending | UBUNTU-CVE-2026-33748 | |
| Ubuntu 20.04 | docker.io-app | Fix pending | 26.1.3-0ubuntu1~20.04.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-33748 |
| Ubuntu 18.04 | docker.io | Fix pending | UBUNTU-CVE-2026-33748 | |
| Ubuntu 16.04 | docker.io | Fix pending | UBUNTU-CVE-2026-33748 | |
| Debian 14 | docker.io | Fixed | 28.5.2+dfsg4-3 | DEBIAN-CVE-2026-33748 |
| Debian 13 | docker.io | Fixed | 26.1.5+dfsg1-9+deb13u1 | DEBIAN-CVE-2026-33748 |
| Debian 12 | docker.io | Fix pending | DEBIAN-CVE-2026-33748 | |
| Red Hat Enterprise Linux 10 | buildah | Not affected | ||
| Red Hat Enterprise Linux 10 | buildah-tests | Not affected | ||
| Red Hat Enterprise Linux 10 | podman | Not affected | ||
| Red Hat Enterprise Linux 10 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 10 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 10 | podman-tests | Not affected | ||
| Alpine Linux 3.24 | buildkit | Fixed | 0.29.0-r0 | ALPINE-CVE-2026-33748 |
| Alpine Linux 3.24 | docker | Fixed | 29.3.1-r0 | ALPINE-CVE-2026-33748 |
| Alpine Linux 3.23 | docker | Fixed | 29.3.1-r0 | ALPINE-CVE-2026-33748 |
| Go library | github.com/moby/buildkit | Fixed | 0.28.1 | GO-2026-4859 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- moby buildkit: affected: < 0.28.1
References
- https://github.com/moby/buildkit/security/advisories/GHSA-4vrq-3vrq-g6gg
- https://docs.docker.com/build/concepts/context/#url-fragments
- https://github.com/moby/buildkit/releases/tag/v0.28.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.