{"id":"CVE-2026-15789","published":"2026-07-21T16:10:20Z","modified":"2026-07-21T17:13:36Z","title":"Malicious client can bypass destination directory validation on local sources upload","vendor":"moby","product":"BuildKit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00483,"percentile":0.34284,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976","tags":["vendor-advisory"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":6.86},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"moby","affectedVersions":[{"vendor":"moby","product":"BuildKit","versions":["< 0.31.2"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-126","name":"Path Traversal"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T17:09:31.474353Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-46309","exploited":false,"provenance":"source"}}