~ / search / GHSA-62jx-8vmh-4mcw

GHSA-62jx-8vmh-4mcw

Links in archive can create arbitrary directories

Source: GitHub Advisory Database (reviewed) High CVE-2021-38511

Packages

EcosystemPackageAffectedFixed in
crates.io tar < 0.4.36 0.4.36

Details

As written in the advisory (Markdown source, shown as plain text).

When unpacking a tarball that contains a symlink the tar crate may create directories outside of the directory it's supposed to unpack into. The function errors when it's trying to create a file, but the folders are already created at this point.

References

External links from the advisory. They lead to third-party sites.