REDHAT-BUG-2519913: Medium severity Moby BuildKit vulnerability
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
BuildKitto a version that resolves this vulnerability.Fixed in 0.31.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs valid permission to access the BuildKit control API and issue builds. This includes situations where authentication to that API is bypassed or otherwise not enforced.
What versions are affected?
BuildKit versions prior to 0.31.2 are affected. The issue is fixed in version 0.31.2.
What is the impact of a successful exploit?
A custom client can send an upload request that causes files to escape the BuildKit-controlled state directory.