CVE-2024-24579
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2024-08-23 |
Timeline
- 2024-01-31Published by the CNA16:40 UTC
- 2024-01-31GitHub advisory published (GHSA-hpxr-w9w7-g4gv)same day
- 2024-08-23CISA SSVC decision recorded205 days after publication
Exploit and advisory records
GitHub advisory GHSA-hpxr-w9w7-g4gv, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/anchore/stereoscope | before 0.0.1 | 0.0.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| anchore stereoscope | before 0.0.1fixed in 0.0.1 | 0.0.1 |
References
- https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204
- https://github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gv
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-24579'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-24579'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-24579'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-24579'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).