ADVISORIES

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

EcosystemPackageAffected versions
Ubuntu:Pro:18.04:LTSdocker.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:LTSdocker.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:LTSdocker.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:LTSdocker.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:LTSdocker.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:LTSdocker.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:LTSdocker.io
All versions before 20.10.25+dfsg1-2ubuntu1+esm2 (fixed in 20.10.25+dfsg1-2ubuntu1+esm2)

References