Symlink Attack Affecting github.com/containers/storage package, versions <1.51.1 >=1.52.0 <1.55.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.11% (45th 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-GITHUBCOMCONTAINERSSTORAGE-8230413
  • published 18 Oct 2024
  • disclosed 17 Oct 2024
  • credit Unknown

How to fix?

Upgrade github.com/containers/storage to version 1.51.1, 1.55.1 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack due to not properly validating if the file is a symlink, when reading /etc/passwd inside the container. This happens via OOM kill when running a malicious image using an automatically assigned user namespace.

Note: This affects Podman, Buildah, and CRI-O.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

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