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 | Vendor | Product | Affected 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.
References
- https://scout.docker.com/v/DHI-auvw-qdxw-5g62-ftx2 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-23652 Vendor Advisory
- https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8 Vendor Advisory
- https://github.com/moby/buildkit/pull/4603 Vendor Advisory
- https://github.com/moby/buildkit/releases/tag/v0.12.5 Patch
- https://security.alpinelinux.org/vuln/CVE-2024-23652 Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2024-542.html Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-24557 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23653 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23652 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23651 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23650 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45289 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39326 Vendor Advisory
- https://github.com/advisories/GHSA-4v98-7qmw-rqr8 Vendor Advisory
- https://pkg.go.dev/vuln/GO-2024-2494 Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2024-23652 Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2024-23652 Patch
- https://snyk.io/blog/cve-2024-23652-buildkit-build-time-container-teardown-arbit... Patch
- https://ubuntu.com/security/CVE-2024-23652 Vendor Advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2024-23652 Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Timeline
Published11 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
DHI-auvw-qdxw-5g62-ftx2 · OSV
Track software like this
Free during beta