Improper Input Validation Affecting github.com/containers/buildah/internal/volumes package, versions <1.33.10 >=1.37.0 <1.37.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (17th 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-GITHUBCOMCONTAINERSBUILDAHINTERNALVOLUMES-8145243
  • published 2 Oct 2024
  • disclosed 1 Oct 2024
  • credit Unknown

How to fix?

Upgrade github.com/containers/buildah/internal/volumes to version 1.33.10, 1.37.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation due to improper input validation in the bind-propagation option of the Dockerfile RUN --mount instruction, an attacker with build privileges on the system can exploit this issue to mount sensitive directories from the host into a container during the build process and potentially modify the contents of those mounted files. This vulnerability can bypass SELinux protections by allowing the source directory to be relabeled, granting the container access to host files.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
5.6 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    Low
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None