VDB
KO
HIGH 7.5

GHSA-62jx-8vmh-4mcw

Links in archive can create arbitrary directories

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io / tar
Introduced in: 0 Fixed in: 0.4.36

Upgrade tar to 0.4.36 or newer (ecosystem crates.io).

References