VDB

SNYK-GOLANG-GITHUBCOMMOBYBUILDKITUTILENTITLEMENTS-6209364

SNYK-GOLANG-GITHUBCOMMOBYBUILDKITUTILENTITLEMENTS-6209364 PUBLISHED CVSS 7.900000095367432 HIGH

## 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/util/entitlements` 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

CVSS 3.1
7.900000095367432
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N/E:P

Affected Products

VendorProductVersions
0

Timeline

  • Dec 11, 2023 CVE Updated
  • Jan 31, 2024 CVE Published
Open in Interactive Console →
$ Console Community · 100/wk Open console ›