ADVISORIES

Go Vulnerability Database

GO-2024-2494

Host system modification in github.com/moby/buildkit

Details

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/moby/buildkit
All versions before 0.12.5 (fixed in 0.12.5)

References