Ubuntu CVE Tracker
UBUNTU-CVE-2024-23651
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:18.04:LTS | docker.io | All versions before 20.10.21-0ubuntu1~18.04.3+esm3 (fixed in 20.10.21-0ubuntu1~18.04.3+esm3) |
| Ubuntu:Pro:20.04:LTS | docker.io | All versions before 20.10.21-0ubuntu1~20.04.6+esm2 (fixed in 20.10.21-0ubuntu1~20.04.6+esm2) |
| Ubuntu:Pro:20.04:LTS | docker.io-app | All versions before 26.1.3-0ubuntu1~20.04.1+esm1 (fixed in 26.1.3-0ubuntu1~20.04.1+esm1) |
| Ubuntu:22.04:LTS | docker.io-app | All versions before 27.5.1-0ubuntu3~22.04.2 (fixed in 27.5.1-0ubuntu3~22.04.2) |
| Ubuntu:Pro:22.04:LTS | docker.io | All versions before 20.10.21-0ubuntu1~22.04.7+esm2 (fixed in 20.10.21-0ubuntu1~22.04.7+esm2) |
| Ubuntu:24.04:LTS | docker.io-app | All versions before 27.5.1-0ubuntu3~24.04.2 (fixed in 27.5.1-0ubuntu3~24.04.2) |
| Ubuntu:Pro:24.04:LTS | docker.io | All versions before 20.10.25+dfsg1-2ubuntu1+esm2 (fixed in 20.10.25+dfsg1-2ubuntu1+esm2) |
References
- https://ubuntu.com/security/CVE-2024-23651
- https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv
- https://github.com/moby/buildkit/pull/4604
- https://github.com/moby/buildkit/releases/tag/v0.12.5
- https://www.openwall.com/lists/oss-security/2019/05/28/1
- https://www.cve.org/CVERecord?id=CVE-2024-23651
- https://ubuntu.com/security/notices/USN-7474-1