10

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

Modified
AliasesUBUNTU-CVE-2024-23652CGA-2c74-9px2-h6cxCGA-347j-q7x3-gphj
Published 31-01-2024Last modified 17-06-2025

Vulnerability summary

CVE-2024-23652 is a critical (CVSS 10.0) vulnerability in moby buildkit. EPSS estimates a 2.46% chance of exploitation in the next 30 days, higher than 84.4% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
10.0/10
010
Critical · v3.1 (CVE.org)
EPSS score
2.46%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 14 · Related 28

Timeline

  1. 31-01-2024
    PublishedVulnerability first disclosed.
  2. 17-06-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

2.46%

Chance of exploitation in the next 30 days

Percentile

84%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.46% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard21 products
  • buildkitd< 0.12.5-r0
  • conftest< 0.49.0-r1
  • conftest-fips< 0.48.0-r2
  • docker< 25.0.2-r0
  • docker-config-mirror-gcr< 25.0.2-r0
Wolfi20 products
  • buildkitd< 0.12.5-r0
  • conftest< 0.49.0-r1
  • docker< 25.0.2-r0
  • docker-config-mirror-gcr< 25.0.2-r0
  • docker-dind< 25.0.2-r0
Alpine4 products
  • buildkit< 0.12.5-r0
  • docker< 25.0.2-r0
  • podman< 4.9.2-r0
  • singularity< 4.1.1-r0
Ubuntu2 products
  • docker.ioAll versions (No fix recorded) | < 20.10.21-0ubuntu1~18.04.3+esm3 | < 20.10.21-0ubuntu1~20.04.6+esm2 | < 20.10.21-0ubuntu1~22.04.7+esm2 | < 20.10.25+dfsg1-2ubuntu1+esm2
  • docker.io-app< 26.1.3-0ubuntu1~20.04.1+esm1 | < 27.5.1-0ubuntu3~22.04.2 | < 27.5.1-0ubuntu3~24.04.2
Github.com/moby1 product
  • buildkit< 0.12.5
Moby1 product
Mobyproject1 product

7 vendors · 50 products

References

10 links