SNYK-GOLANG-GITHUBCOMMOBYBUILDKITCLIENT-6209355
## Overview Affected versions of this package are vulnerable to Improper Handling of Insufficient Privileges (Leaky Vessels) via APIs for running interactive containers based on built images. It is 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. ## Workaround Avoid using BuildKit frontends from untrusted sources. A frontend image is usually specified as the `#syntax` line in the Dockerfile, or with the `--frontend` flag when using the `buildctl build` command. *This vulnerability was discovered and responsibly disclosed as part of the [Leaky Vessels](https://snyk.io/blog/leaky-vessels-docker-runc-container-breakout-vulnerabilities/) project.* ## Remediation Upgrade `github.com/moby/buildkit/client` to version 0.12.5 or higher. ## References - [GitHub Commit](https://github.com/moby/buildkit/commit/5026d95aa3336e97cfe46e3764f52d08bac7a10e) - [GitHub Commit](https://github.com/moby/buildkit/commit/92cc595cfb12891d4b3ae476e067c74250e4b71e) - [Snyk Blog Post](https://snyk.io/blog/cve-2024-23653-buildkit-grpc-securitymode-privilege-check/)
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| 0 |
Timeline
- Dec 11, 2023 CVE Updated
- Jan 31, 2024 CVE Published
References
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMOBYBUILDKITCLIENT-6209355 advisory
- https://snyk.io/blog/leaky-vessels-docker-runc-container-breakout-vulnerabilities/ technical
- https://github.com/moby/buildkit/commit/5026d95aa3336e97cfe46e3764f52d08bac7a10e patch
- https://github.com/moby/buildkit/commit/92cc595cfb12891d4b3ae476e067c74250e4b71e patch
- https://snyk.io/blog/cve-2024-23653-buildkit-grpc-securitymode-privilege-check/ technical