# GHSA-xx64-wwv2-hcqq: astral-tokio-tar: `unpack_in` can chmod arbitrary directories by following symlinks

- Severity: Low (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-27T12:00:00.000Z
- Modified: 2026-10-12T18:00:09.237Z
- Also known as: RUSTSEC-2026-0113
- Weaknesses: CWE-61

## Description

### Impact

In versions 0.6.0 and earlier of astral-tokio-tar, the `unpack_in` API could inadvertently modify the permissions of external (i.e. non-archive) directories outside of the archive. An attacker could use this to contrite a tar archive that maliciously changes directory permissions outside of its intended hierarchy. This flaw only affects directories; individual file permissions cannot be modified via it.

See GHSA-j4xf-2g29-59ph for the equivalent flaw in the `tar` crate.

### Patches

Versions 0.6.1 and newer of astral-tokio-tar use `fs::symlink_metdata` rather than `fs::metadata`, avoiding the traversal. 

### Workarounds

Users are advised to upgrade to version 0.6.1 or newer to address this advisory.

Users should experience no breaking changes as a result of the patch above.

### Resources

- GHSA-j4xf-2g29-59ph for the original `tar` vulnerability

### Attribution

- Reporter: Adam Harvey (@lawngnome)

(As written by GitHub Advisory Database.)

## Affected

- astral-tokio-tar (crates.io): before 0.6.1; from 0.0.0-0 before 0.6.1

## References

- <https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-xx64-wwv2-hcqq> (web)
- <https://github.com/advisories/GHSA-xx64-wwv2-hcqq> (advisory)
- <https://github.com/astral-sh/tokio-tar> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0113.html> (advisory, web)
- <https://crates.io/crates/astral-tokio-tar> (package)
- <https://github.com/astral-sh/tokio-tar/commit/f1fa37043a6fe798dcd1fd4b3000d889ac35b183> (web)

## Sources

- GitHub Advisory Database: [GHSA-xx64-wwv2-hcqq](https://github.com/advisories/GHSA-xx64-wwv2-hcqq), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0113](https://rustsec.org/advisories/RUSTSEC-2026-0113.html), CC0-1.0, modified 2026-10-12

---

Page: https://cve.day/GHSA-xx64-wwv2-hcqq · Whole record: https://cve.day/GHSA-xx64-wwv2-hcqq.json · Rebuilt by cve.day 2026-11-25T22:56:43.342Z
