Vulnerabilities / CVE-2024-24579

critical

CVE-2024-24579

stereoscope vulnerable to tar path traversal when processing OCI tar archives

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA5.3CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
chainguardgrype, k9s, kubescape and 3 more0.74.4-r0 and 5 more
go::GitHub Security Advisory Gogithub.com/anchore/stereoscope0.0.1
minimospaketo-buildpacks-bundle-install, paketo-buildpacks-bundler, paketo-buildpacks-passenger0.9.10-r0 and 2 more
wolfigrype, k9s, kubescape and 3 more0.74.4-r0 and 5 more
Show all 16 entries from 4 sources
SourcePackageFixed in
chainguardgrype0.74.4-r0
chainguardk9s0.31.8-r0
chainguardkubescape3.0.3-r7
chainguardsyft0.103.1-r0
chainguardwolfictl0.14.13-r0
chainguardzarf0.32.3-r0
go::GitHub Security Advisory Gogithub.com/anchore/stereoscope0.0.1
minimospaketo-buildpacks-bundle-install0.9.10-r0
minimospaketo-buildpacks-bundler0.9.11-r0
minimospaketo-buildpacks-passenger0.14.23-r0
wolfigrype0.74.4-r0
wolfik9s0.31.8-r0
wolfikubescape3.0.3-r7
wolfisyft0.103.1-r0
wolfiwolfictl0.14.13-r0
wolfizarf0.32.3-r0

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.