CVE-2024-24579: Tar path traversal in stereoscope when processing OCI tar archives
Vulnerability summary
CVE-2024-24579 is a critical (CVSS 9.8) vulnerability in anchore stereoscope. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 35.6% of scored vulnerabilities.
Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 7Timeline
- 31-01-2024PublishedVulnerability first disclosed.
- 23-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · GoEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
36%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.39% on 05-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard6 products
- grype< 0.74.4-r0
- k9s< 0.31.8-r0
- kubescape< 3.0.3-r7
- syft< 0.103.1-r0
- wolfictl< 0.14.13-r0
Wolfi6 products
- grype< 0.74.4-r0
- k9s< 0.31.8-r0
- kubescape< 3.0.3-r7
- syft< 0.103.1-r0
- wolfictl< 0.14.13-r0
Anchore1 product
- stereoscope< 0.0.1
Github.com/anchore1 product
- stereoscope< 0.0.1
4 vendors · 14 products
References
5 links- github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gvX Refsource CONFIRMAdvisoryWEBThird Party Advisory
- github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204X Refsource MISCFIXWEBPatch