SecurityContext

CVE-2024-24579: Stereoscope - Path Traversal

  • Cve: CVE-2024-24579
  • Name: Stereoscope - Path Traversal
  • 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.
  • Impact: Attackers can write files outside the intended directory, potentially leading to arbitrary file overwrite or system compromise.
  • Remediation: Update to version 0.0.1 or later, or use OCI layout instead of tar archive as input.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00393
  • Epss percentile: 0.34013
  • Assignee: [email protected]
  • Published at: 2024-01-31T17:15:40Z
  • Age in days: 1028
  • Modified at: 2026-06-17T07:14:38Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-24579
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

UrlSourceTags
https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204nvdPatch
https://github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gvnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
anchore:stereoscope< 0.0.1nonvd/v1/products/anchore/stereoscope

Projects

RepositoryLink kindsIndexedUrl
anchore/stereoscopecommit, fix, package, security_advisoryyes/v1/repositories/anchore/stereoscope

Index

  • Repositories: 2
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts