ADVISORIES

Go Vulnerability Database

GO-2024-2497

Privilege escalation in github.com/moby/buildkit

Details

BuildKit provides APIs for running interactive containers based on built images. It was possible to use these APIs to ask BuildKit to run a container with elevated privileges. Normally, running such containers is only allowed if special security.insecure entitlement is enabled both by buildkitd configuration and allowed by the user initializing the build request.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/moby/buildkit
All versions before 0.12.5 (fixed in 0.12.5)

References