Advisory

GHSA-62jx-8vmh-4mcw

Also known as: CVE-2021-38511, RUSTSEC-2021-0080

Summary

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:58 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

tar

crates.io · All systems

Affected

  • introduced 0, fixed 0.4.36 (semver)

Fixed versions

0.4.36

Fix

  • Fixed version 0.4.36
    cargo update -p tar --precise 0.4.36

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