Advisory

GHSA-4v98-7qmw-rqr8

Also known as: CVE-2024-23652, GO-2024-2494

Summary

BuildKit vulnerable to possible host system access from mount stub cleaner

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-01-31 22:43 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/moby/buildkit

Go · All systems

Affected

  • introduced 0, fixed 0.12.5 (semver)

Fixed versions

0.12.5

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences