Race Condition (Leaky Vessels) Affecting github.com/moby/buildkit/snapshot package, versions <0.12.5
Threat Intelligence
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 ID SNYK-GOLANG-GITHUBCOMMOBYBUILDKITSNAPSHOT-6209339
- published 31 Jan 2024
- disclosed 11 Dec 2023
- credit Rory McNamara (Snyk Security Research)
Introduced: 11 Dec 2023
CVE-2024-23651 Open this link in a new tabHow to fix?
Upgrade github.com/moby/buildkit/snapshot
to version 0.12.5 or higher.
Overview
Affected versions of this package are vulnerable to Race Condition (Leaky Vessels) in the subpath mounting when two malicious build steps are running in parallel and sharing the same cache mounts. This can lead to files from the host system being accessible to the build container.
Workaround
Avoid using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=...
options.
This vulnerability was discovered and responsibly disclosed as part of the Leaky Vessels project.