Improper Handling of Insufficient Privileges (Leaky Vessels) Affecting github.com/moby/buildkit/snapshot package, versions <0.12.5


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMMOBYBUILDKITSNAPSHOT-6209362
  • published31 Jan 2024
  • disclosed11 Dec 2023
  • creditRory McNamara (Snyk Security Research)

Introduced: 11 Dec 2023

CVE-2024-23653  (opens in a new tab)
CWE-274  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade github.com/moby/buildkit/snapshot to version 0.12.5 or higher.

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 project.

CVSS Scores

version 3.1