9.8

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

Modified
AliasesCGA-2g77-m6x3-r9qvCGA-4w5w-6vpc-482mCGA-64x7-xq69-gxr7
Published 31-01-2024Last modified 23-08-2024

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.

Priority
Routine

Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.39%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 7

Timeline

  1. 31-01-2024
    PublishedVulnerability first disclosed.
  2. 23-08-2024
    Last 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

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

05-11-202605-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Github.com/anchore1 product
  • stereoscope< 0.0.1

4 vendors · 14 products

References

5 links