CVE-2024-23652

BuildKit possible host system access from mount stub cleaner

Published Jan 31, 2024 CVSS 3.1 · 10 Critical EPSS 2.5% KEV · Not listed
Description
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.

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-0254 BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.
Github GHSA Github GHSA GHSA-4v98-7qmw-rqr8 BuildKit vulnerable to possible host system access from mount stub cleaner
Ubuntu USN Ubuntu USN USN-7474-1 Docker vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics threat_severity

Low

threat_severity

Important

Type Values Removed Values Added
Metrics threat_severity

Important

threat_severity

Low

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 17, 2025, 9:29 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
Important
Public date
Jan 31, 2024, 12:00 AM