github.com/moby/buildkit
Affected
- introduced
0, fixed0.12.5(semver)
Fixed versions
0.12.5
Fix
- Fixed version
0.12.5go get github.com/moby/[email protected]
Advisory
Also known as: CVE-2024-23652, GO-2024-2494
BuildKit vulnerable to possible host system access from mount stub cleaner
Impact
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.
Patches
The issue has been fixed in v0.12.5
Workarounds
Avoid using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.
References
Critical Basis: The source's own band: CRITICAL
0, fixed 0.12.5 (semver)0.12.5
0.12.5go get github.com/moby/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0