Skip to main content
← All vulnerabilities
CVE-2024-23652GHSA-4V98-7QMW-RQR8GO-2024-2494

BuildKit possible host system access from mount stub cleaner

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.12.5
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • moby buildkit

    fixed in 0.12.5

  • github.com/moby/buildkitGo

    fixed in 0.12.5

References 5

GitHub · moby/buildkit

GitHub · abian2/CVE-2024-23652

GitHub · hgyc/CVE-stand