Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
10.0

Docker BuildKit may delete files on host system

published 10 days ago
Summary

Docker images that use BuildKit (such as the hardened devspace images) can be tricked by a malicious BuildKit front end or a Dockerfile that uses the RUN --mount option to remove files on the host computer. The problem was corrected in BuildKit version 0.12.5; upgrade to that version or later, and avoid using BuildKit front ends or Dockerfiles from sources you do not trust.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Docker Hardened Images:Alpine:3.23 docker hardened images devspace-dev All versions
Docker Hardened Images:Alpine:3.23 docker hardened images devspace-fips-dev All versions
Docker Hardened Images:Alpine:3.23 docker hardened images devspace-fips All versions
Docker Hardened Images:Alpine:3.23 docker hardened images devspace All versions
Original advisory text
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner…
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.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker partial control (estimated)
Severity
10.0 Critical
Timeline
Published11 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
Track software like this
Free during beta