Intel

AIKIDO-2026-256431

github.com/moby/buildkit is vulnerable to Path Traversal

Path TraversalCVE-2026-15789 Published Aug 11, 2026

53

Medium Risk

This Affects:

GOgithub.com/moby/buildkit
0.0.1 - 0.31.1
Fixed in 0.31.2
Are you affected? Scan for Free

TL;DR

BuildKit does not neutralize traversal sequences in destination paths when handling local source uploads. A custom client with access to the control API can craft an upload request whose destination escapes the BuildKit-controlled state directory. This lets files be written outside the intended directory on the daemon host. The fix validates upload destinations against the state directory.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run a BuildKit service that accepts builds from untrusted clients with access to the control API.

Background info

github.com/moby/buildkit is vulnerable to Path Traversal in versions 0.0.1 - 0.31.1.

How to fix this

Upgrade the github.com/moby/buildkit library to the patch version.