Directory Traversal Affecting syft package, versions <0.103.1-r0
Threat Intelligence
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-WOLFILATEST-SYFT-6227567
- published 5 Feb 2024
- disclosed 31 Jan 2024
Introduced: 31 Jan 2024
CVE-2024-24579 Open this link in a new tabHow to fix?
Upgrade Wolfi
syft
to version 0.103.1-r0 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream syft
package and not the syft
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.