CVE-2024-24579
CRITICAL 9.8CVSS 3.1stereoscope vulnerable to tar path traversal when processing OCI tar archives
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.
- Published
- 31 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-hpxr-w9w7-g4gvGO-2024-2490
- Sources
- NVDJSONOSV GHSA-hpxr-w9w7-g4gvJSONOSV GO-2024-2490JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anchore | stereoscopecpe:2.3:a:anchore:stereoscope:*:*:*:*:*:go:*:* |
< 0.0.1 | 0.0.1 |
| OSV | Go | github.com/anchore/stereoscope | < 0.0.1 | 0.0.1 |
References
- https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204 · Patch, WEB, FIX
- https://github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gv · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-24579 · ADVISORY
- https://github.com/anchore/stereoscope · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 31 Jan 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Feb 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 31 Jan 2024)