Skip to main content
VulnerabilityPublished

astral-tokio-tar: `unpack_in` can chmod arbitrary directories by following symlinks

Affects astral-tokio-tarSource GCVE Database

0

CVSS 6.9 Medium : upgrade to 0.6.1 when convenient.

Data as of 27 Oct 2026, 02:11 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.6.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U

What to do

Upgrade astral-tokio-tar to 0.6.1.

Affected software

ProductAffectedFixed in
crates.ioastral-tokio-tarAffected
  • <0.6.1
Fixed in
  • 0.6.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade astral-tokio-tar to version 0.6.1 or later, where the vulnerability is fixed by using fs::symlink_metadata instead of fs::metadata to prevent symlink traversal. No breaking changes are expected from this upgrade. Users should apply this update to eliminate the risk of unauthorized directory permission changes.

Description

In astral-tokio-tar versions 0.6.0 and earlier, the unpack_in API could change permissions of directories outside the intended archive by following symlinks. This vulnerability allows a crafted tar archive to modify external directory permissions but does not affect individual file permissions. The issue is fixed in version 0.6.1, which changes the method used to avoid symlink traversal.

References

Community reviews

Loading reviews…