Intel

AIKIDO-2026-361750

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

Path TraversalCVE-2026-15791 Published Aug 12, 2026

35

Low Risk

This Affects:

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

TL;DR

A file operation in BuildKit's low-level build API resolves deletion paths without confining them to the build container rootfs. A crafted LLB message can make the delete action escape into the real host temporary directory. This allows removal of the contents of the host /tmp directory. The fix constrains the operation to the intended rootfs path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you allow untrusted parties to issue builds through a custom frontend that uses the low-level build API.

Background info

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

How to fix this

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

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform