github.com/moby/buildkit
Affected
- introduced
0, fixed0.12.5(semver)
Fixed versions
0.12.5
Fix
- Fixed version
0.12.5go get github.com/moby/[email protected]
Advisory
Also known as: CVE-2024-23653, GO-2024-2497
Buildkit's interactive containers API does not validate entitlements check
Impact
In addition to running containers as build steps, BuildKit also 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.
Patches
The issue has been fixed in v0.12.5 .
Workarounds
Avoid using BuildKit frontends from untrusted sources. A frontend image is usually specified as the #syntax line on your Dockerfile, or with --frontend flag when using buildctl build command.
References
Critical Basis: The source's own band: CRITICAL
0, fixed 0.12.5 (semver)0.12.5
0.12.5go get github.com/moby/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0