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

Source: https://junglewise.ai/threats/astral-tokio-tar-unpack-in-can-chmod-arbitrary-directories-by-following-6d2f1c09  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-06  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 4 · Published 2026-05-06

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

Technologies: [astral-tokio-tar (crates.io)](https://junglewise.ai/threats/technologies/astral-tokio-tar). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Medium severity, with a CVSS score of 4, published 6 May 2026.

**Which products and versions are affected?** astral-tokio-tar (crates.io) SEMVER:introduced=0,fixed=0.6.1.

**Is there a fix for This vulnerability?** Yes. astral-tokio-tar (crates.io): upgrade to 0.6.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run astral-tokio-tar (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- astral-tokio-tar (crates.io): upgrade to 0.6.1 or later

  ```sh
  cargo update -p astral-tokio-tar
  ```


## Affected products

- astral-tokio-tar (crates.io) SEMVER:introduced=0,fixed=0.6.1

## Related threats

- [Astral astral-tokio-tar library unmaintained](https://junglewise.ai/threats/rustsec-2026-0440-astral-tokio-tar-is-unmaintained-9bf9b77f)
- [Astral astral-tokio-tar PAX header desynchronization](https://junglewise.ai/threats/astral-astral-tokio-tar-pax-header-desynchronization-c2fb9068)
- [RUSTSEC-2026-0145 - PAX Header Desynchronization in astral-tokio-tar](https://junglewise.ai/threats/rustsec-2026-0145-pax-header-desynchronization-in-astral-tokio-tar-01625d48)
- [astral-tokio-tar is Vulnerable to PAX Header Desynchronization](https://junglewise.ai/threats/astral-tokio-tar-is-vulnerable-to-pax-header-desynchronization-a46fcefa)
- [RUSTSEC-2026-0112 - PAX Header Desynchronization in astral-tokio-tar](https://junglewise.ai/threats/rustsec-2026-0112-pax-header-desynchronization-in-astral-tokio-tar-35a797b2)
