Directory Traversal Affecting k9s package, versions <0.31.8-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.08% (38th 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-K9S-6240981
  • published9 Feb 2024
  • disclosed31 Jan 2024

Introduced: 31 Jan 2024

CVE-2024-24579  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Wolfi k9s to version 0.31.8-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream k9s package and not the k9s package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

stereoscope is a go library for processing container images and simulating a squash filesystem. Prior to version 0.0.1, it is possible to craft an OCI tar archive that, when stereoscope attempts to unarchive the contents, will result in writing to paths outside of the unarchive temporary directory. Specifically, use of github.com/anchore/stereoscope/pkg/file.UntarToDirectory() function, the github.com/anchore/stereoscope/pkg/image/oci.TarballImageProvider struct, or the higher level github.com/anchore/stereoscope/pkg/image.Image.Read() function express this vulnerability. As a workaround, if you are using the OCI archive as input into stereoscope then you can switch to using an OCI layout by unarchiving the tar archive and provide the unarchived directory to stereoscope.

CVSS Scores

version 3.1