CVE-2024-23652

critical

Description

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. 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. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.

References

https://www.wiz.io/blog/leaky-vessels-container-escape-vulnerabilities

https://www.darkreading.com/cloud-security/leaky-vessel-cloud-bugs-container-escapes-globally

https://snyk.io/blog/leaky-vessels-docker-runc-container-breakout-vulnerabilities/

https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8

https://github.com/moby/buildkit/releases/tag/v0.12.5

https://github.com/moby/buildkit/pull/4603

Details

Source: Mitre, NVD

Published: 2024-01-31

Updated: 2024-02-09

Risk Information

CVSS v2

Base Score: 9.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:C/A:C

Severity: High

CVSS v3

Base Score: 9.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Severity: Critical