Tar path traversal in stereoscope when processing OCI tar archives
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| anchore | stereoscope | before 0.0.1 | 0.0.1 | Patch available | CNA |
| — | github.com/anchore/stereoscope (Go) | before 0.0.1 | 0.0.1 | Patch available | GHSA-hpxr-w9w7-g4gv |
- stereoscope Vendoranchore Affected before 0.0.1 Fixed in 0.0.1 Patch available CNA
- github.com/anchore/stereoscope (Go) Vendor— Affected before 0.0.1 Fixed in 0.0.1 Patch available GHSA-hpxr-w9w7-g4gv
Remediation
- Fix · CNA stereoscope (anchore) Fixed in 0.0.1
- Fix · GHSA-hpxr-w9w7-g4gv github.com/anchore/stereoscope (Go) Fixed in 0.0.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-24579
- 2026-10-03 Alias added: GHSA-hpxr-w9w7-g4gv
References
Sources
- CVE-2024-24579 · CVE Program
- CVE-2024-24579 · NVD
- FIRST EPSS
- GHSA-hpxr-w9w7-g4gv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences