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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-01-31 · Modified: 2024-08-23
- Aliases: CGA-2g77-m6x3-r9qv, CGA-4w5w-6vpc-482m, CGA-64x7-xq69-gxr7, CGA-8m92-gg73-j74q, CGA-9w34-wf4m-84cq, CGA-g3f2-74r3-h52g, CGA-hx8f-4qgw-mmvp, CGA-mq72-7jc8-r4r8, CGA-pq6c-xr38-gr6p, CGA-rppx-3xcp-96mc, CGA-wpc9-5jwr-895x, CGA-xc3h-fhfw-f5wc, GHSA-hpxr-w9w7-g4gv, GO-2024-2490
- Record: https://cvemate.com/vulnerability/CVE-2024-24579 · JSON: https://cvemate.com/vulnerability/CVE-2024-24579/json

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

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.393%, percentile 35.629%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- anchore stereoscope: \< 0.0.1
- chainguard grype (Chainguard): \< 0.74.4-r0
- chainguard k9s (Chainguard): \< 0.31.8-r0
- chainguard kubescape (Chainguard): \< 3.0.3-r7
- chainguard syft (Chainguard): \< 0.103.1-r0
- chainguard wolfictl (Chainguard): \< 0.14.13-r0
- chainguard zarf (Chainguard): \< 0.32.3-r0
- wolfi grype (Wolfi): \< 0.74.4-r0
- wolfi k9s (Wolfi): \< 0.31.8-r0
- wolfi kubescape (Wolfi): \< 3.0.3-r7
- wolfi syft (Wolfi): \< 0.103.1-r0
- wolfi wolfictl (Wolfi): \< 0.14.13-r0
- wolfi zarf (Wolfi): \< 0.32.3-r0
- github.com/anchore stereoscope (Go): \< 0.0.1

## References

- <https://github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gv>
- <https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24579.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24579>
- <https://github.com/anchore/stereoscope>

---

Data as of 2026-12-05T19:03:47.714Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
