# CVE-2026-15789: Malicious client can bypass destination directory validation on local sources upload

- Severity: Medium 6.9 (CVSS:4.0, scored by Docker) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-07-21T16:10:20.421Z
- Modified: 2026-10-24T19:10:00.127Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Docker

## Description

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.

(As written by CVE List.)

## Affected

- moby BuildKit: before 0.31.2
- mobyproject buildkit: before 0.31.2

## Every score

- Docker: CVSS:4.0 6.9 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-15789](https://www.cve.org/CVERecord?id=CVE-2026-15789), CVE Terms of Use, modified 2026-07-21
- NVD: [CVE-2026-15789](https://nvd.nist.gov/vuln/detail/CVE-2026-15789), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-15789 · Whole record: https://cve.day/CVE-2026-15789.json · Rebuilt by cve.day 2026-11-25T22:59:29.357Z
