Lucene search

K
githubGitHub Advisory DatabaseGHSA-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
CWE-22
GitHub Advisory Database
github.com
13
buildkit
mount stub cleaner
host system access
security issue
dockerfile
run --mount
v0.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 High

AI Score

Confidence

Low

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

Affected configurations

Vulners
Node
github_advisory_databasegithub.com\/moby\/buildkitRange<0.12.5
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 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

21.8%