Lucene search

K
osvGoogleOSV:GHSA-4V98-7QMW-RQR8
HistoryJan 31, 2024 - 10:43 p.m.

BuildKit vulnerable to possible host system access from mount stub cleaner

2024-01-3122:43:26
Google
osv.dev
6
buildkit
vulnerability
fix
v0.12.5
host system access
mount stub cleaner
dockerfile
run --mount
untrusted source
untrusted dockerfile

10 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

7.1 High

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

21.8%

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

CPENameOperatorVersion
github.com/moby/buildkitlt0.12.5

10 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

7.1 High

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

21.8%