VULNERABILITY INTELLIGENCE
CVE-2024-23651
CVSS score8.7 HIGH
EPSS probability0.91%
CISA KEVNot currently listed
Published2024-01-31
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
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.
Weakness classification
- security-advisories@github.com: CWE-362
Primary references
- security-advisories@github.com — Patch, Vendor Advisory
- security-advisories@github.com — Patch, Release Notes
- security-advisories@github.com — Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Patch, Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Patch, Release Notes
- af854a3a-2127-422b-91ae-364da2661108 — Vendor Advisory