Vulnerability Description
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Mobyproject | Buildkit | < 0.12.5 |
Related Weaknesses (CWE)
References
- https://github.com/moby/buildkit/pull/4604PatchVendor Advisory
- https://github.com/moby/buildkit/releases/tag/v0.12.5PatchRelease Notes
- https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxvVendor Advisory
- https://github.com/moby/buildkit/pull/4604PatchVendor Advisory
- https://github.com/moby/buildkit/releases/tag/v0.12.5PatchRelease Notes
- https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxvVendor Advisory
FAQ
What is CVE-2024-23651?
CVE-2024-23651 is a vulnerability with a CVSS score of 8.7 (HIGH). BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with ...
How severe is CVE-2024-23651?
CVE-2024-23651 has been rated HIGH with a CVSS base score of 8.7/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-23651?
Check the references section above for vendor advisories and patch information. Affected products include: Mobyproject Buildkit.