Improper Link Resolution Before File Access (Leaky Vessels) Affecting github.com/moby/buildkit/executor package, versions <0.12.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Social Trends
    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMMOBYBUILDKITEXECUTOR-6209341
  • published 31 Jan 2024
  • disclosed 11 Dec 2023
  • credit Rory McNamara (Snyk Security Research)

How to fix?

Upgrade github.com/moby/buildkit/executor to version 0.12.5 or higher.

Overview

Affected versions of this package are vulnerable to Improper Link Resolution Before File Access (Leaky Vessels) allowing arbitrary file deletion on the host system. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing arbitrary files in the host filesystem.

Workaround

Avoid using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing the RUN --mount feature.

This vulnerability was discovered and responsibly disclosed as part of the Leaky Vessels project.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High
Expand this section

NVD

9.1 critical
Expand this section

SUSE

6.7 medium
Expand this section

Red Hat

7.8 high