CVE-2026-15789Malicious client can bypass destination directory validation on local sources upload
A custom client can produce such an upload request to the BuildKit daemon that files can escape from the BuildKit-controlled state directory. The client needs to have valid permissions to access the BuildKit control API to issue builds, e.g., bypass authentication, etc.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.
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 |
|---|---|---|---|---|
| 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 | ||
| Red Hat Enterprise Linux 9 | buildah | Fixed | 2:1.43.3-2.el9_8 | RHSA-2026:70640 |
| Red Hat Enterprise Linux 9 | buildah-tests | Fixed | 2:1.43.3-2.el9_8 | RHSA-2026:70640 |
| Red Hat Enterprise Linux 9 | podman | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-catatonit | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 9 | podman-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah | Not affected | ||
| Red Hat Enterprise Linux 8 | buildah-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | podman | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-catatonit | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-docker | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-gvproxy | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-remote | Not affected | ||
| Red Hat Enterprise Linux 8 | podman-tests | Not affected | ||
| AlmaLinux 9 | buildah | Fixed | 2:1.43.3-2.el9_8 | ALSA-2026:70640 |
| AlmaLinux 9 | buildah-tests | Fixed | 2:1.43.3-2.el9_8 | ALSA-2026:70640 |
| Rocky Linux 9 | buildah | Fixed | 2:1.43.3-2.el9_8 | RLSA-2026:70640 |
What the vendor says
As published in the CVE record by Docker, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- moby BuildKit: affected: before 0.31.2; fixed in
0.31.2
Workaround: Only use proper BuildKit clients (Docker Buildx, Buildctl) to issue builds. The issue only affects scenarios where you are running a BuildKit service with untrusted parties issuing builds.
Vendor advisories:
- https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976 (vendor-advisory)
References
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.