Security mailing lists by PureSourceCode

CVE-2024-24579

CRITICAL 9.8CVSS 3.1

stereoscope 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD anchore stereoscope
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.