# CVE-2024-24579: Tar path traversal in stereoscope when processing OCI tar archives

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2024-01-31T16:40:35.385Z
- Modified: 2026-09-10T03:50:00.234Z
- Also known as: GHSA-hpxr-w9w7-g4gv, GO-2024-2490
- Related: CGA-j5mc-5rhm-j3pp
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- anchore stereoscope: < 0.0.1; before 0.0.1
- github.com/anchore/stereoscope (Go): before 0.0.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gv> (advisory, third-party-advisory, web)
- <https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24579> (advisory)
- <https://github.com/anchore/stereoscope> (package)

## Sources

- CVE List: [CVE-2024-24579](https://www.cve.org/CVERecord?id=CVE-2024-24579), CVE Terms of Use, modified 2024-08-23
- GitHub Advisory Database: [GHSA-hpxr-w9w7-g4gv](https://github.com/advisories/GHSA-hpxr-w9w7-g4gv), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2490](https://pkg.go.dev/vuln/GO-2024-2490), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-24579](https://nvd.nist.gov/vuln/detail/CVE-2024-24579), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24579 · Whole record: https://cve.day/CVE-2024-24579.json · Rebuilt by cve.day 2026-11-25T22:58:36.470Z
