Advisory

GHSA-hpxr-w9w7-g4gv

Also known as: CVE-2024-24579, GO-2024-2490

Summary

stereoscope vulnerable to tar path traversal when processing OCI tar archives

Details

Impact
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.

Patches
Patched in v0.0.1

Workarounds
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.

References

  • Patch PR https://github.com/anchore/stereoscope/pull/214

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-01-31 22:39 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/anchore/stereoscope

Go · All systems

Affected

  • introduced 0, fixed 0.0.1 (semver)

Fixed versions

0.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences