CVE-2026-75593: BuildKit: Malicious client can bypass destination directory validation on local sources upload

Published Aug 19, 2026
·
Updated

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to 0.31.2, 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 BuildKit control API to issue builds, eg., bypass authentication, etc. This issue is fixed in version 0.31.2.

Affected Software

1 affected component
Moby BuildKit<0.31.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade BuildKit to a version that resolves this vulnerability.

    Fixed in 0.31.2

Event History

Aug 19, 2026
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs valid permission to access the BuildKit control API and issue builds. This includes a client that can bypass authentication or otherwise obtain authorized BuildKit API access.

2

What is the impact of a successful exploit?

A malicious custom client can craft a local-source upload request that bypasses destination-directory validation, allowing files to escape the BuildKit-controlled state directory.

3

Which versions should be remediated?

BuildKit versions prior to 0.31.2 are affected. Upgrade to version 0.31.2 to obtain the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203