CVE-2024-23652 | BuildKit possible host system access from mount stub cleaner

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.

Published: 2024-01-31 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-23652 is rated High Risk (72.4/100): CVSS Critical severity, with high exploitation likelihood (EPSS 5.70%, 90th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2024-23652

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-02-18 4.86% 5.70% +0.85%
2 2026-01-17 3.84% 4.86% +1.01%
3 2026-01-06 3.84%

Full EPSS history (37 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-23652

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
10.0 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.8 [email protected]
9.1 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.2 [email protected]

Weakness enumeration for CVE-2024-23652

GitHub Security Advisory for CVE-2024-23652

GHSA-4v98-7qmw-rqr8 · Severity: critical · Ecosystem: go — BuildKit vulnerable to possible host system access from mount stub cleaner

OS Trackers for CVE-2024-23652

vendor priority summary link
alpine CVE-2024-23652: 4 source package rows (buildkit, docker, podman, singularity); 19 state rows across 5 repos (3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 19, open 0. https://security.alpinelinux.org/vuln/CVE-2024-23652
gentoo low CVE-2024-23652: 3 GLSA(s) (202407-12, 202407-25, 202409-29), 3 atom(s) (app-containers/buildah, app-containers/docker, app-containers/podman); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2024-23652
redhat high https://access.redhat.com/security/cve/CVE-2024-23652
suse medium https://www.suse.com/security/cve/CVE-2024-23652/
ubuntu medium CVE-2024-23652 medium priority: Ubuntu including 2 source packages (docker.io, docker.io-app), 22 status rows across 11 suites (bionic, focal, jammy, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): released 9, ignored 8, not-affected 3, DNE 2. https://ubuntu.com/security/CVE-2024-23652

Affected software / configurations for CVE-2024-23652

Vendor Product Version Raw CPE
mobyproject buildkit < 0.12.5 cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:*

References for CVE-2024-23652

cvelogic Threat Intelligence