Skip to content

BuildKit vulnerable to possible host system access from mount stub cleaner

Critical severity GitHub Reviewed Published Jan 31, 2024 in moby/buildkit • Updated Feb 1, 2024

Package

gomod github.com/moby/buildkit (Go)

Affected versions

< 0.12.5

Patched versions

0.12.5

Description

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

References

@tonistiigi tonistiigi published to moby/buildkit Jan 31, 2024
Published by the National Vulnerability Database Jan 31, 2024
Published to the GitHub Advisory Database Jan 31, 2024
Reviewed Jan 31, 2024
Last updated Feb 1, 2024

Severity

Critical
10.0
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

Weaknesses

CVE ID

CVE-2024-23652

GHSA ID

GHSA-4v98-7qmw-rqr8

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.