NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-23652: BuildKit vulnerable to possible host system access from mount stub cleaner

criticalCVSS 3.1 10.0GHSA-4v98-7qmw-rqr8

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

Published Jan 31, 2024 · Updated Feb 1, 2024

Affected packages

github.com/moby/buildkit

Ecosystem
Go
Affected
< 0.12.5
Fixed in
0.12.5
Check
go list -m github.com/moby/buildkit

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to rmcnamara-snyk.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries