{"id":"CVE-2024-24579","published":"2024-01-31T16:40:35Z","modified":"2024-08-23T16:26:39Z","title":"Tar path traversal in stereoscope when processing OCI tar archives","vendor":"anchore","product":"stereoscope","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00504,"percentile":0.36158,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":7.23},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"anchore","affectedVersions":[{"vendor":"anchore","product":"stereoscope","versions":["< 0.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-23T16:25:15.557724Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/anchore/stereoscope","vulnerableRanges":["<0.0.1"],"patched":["0.0.1"],"from":["GHSA-hpxr-w9w7-g4gv","GO-2024-2490"],"provenance":"source"}],"summary":{"text":"The stereoscope Go library from Anchore contains a path traversal flaw in its OCI tar archive handling: when it unpacks a specially crafted OCI tar archive through UntarToDirectory(), TarballImageProvider, or Image.Read(), it can write files outside the temporary extraction directory. An attacker would need to supply the malicious archive to the affected process, and that requires user interaction, such as a victim processing the archive, with local access to the system being used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:28Z"},"euvd":{"id":"EUVD-2024-0369","exploited":false,"provenance":"source"}}