CVE-2024-23651

BuildKit possible race condition with accessing subpaths from cache mounts

Published Jan 31, 2024 CVSS 3.1 · 8.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0383 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.
Github GHSA Github GHSA GHSA-m3r6-h7wv-7xxv BuildKit vulnerable to possible race condition with accessing subpaths from cache mounts
Ubuntu USN Ubuntu USN USN-7474-1 Docker vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 29, 2025, 3:03 PM
Reserved
Jan 19, 2024, 12:18 AM
Status
Modified
Published
Jan 31, 2024, 10:15 PM
Modified
Jun 17, 2026, 7:13 AM
Severity
Moderate
Public date
Jan 31, 2024, 1:01 AM