# CVE-2025-59825: astral-tokio-tar has a path traversal in tar extraction

Source: https://junglewise.ai/threats/cve-2025-59825-astral-tokio-tar-has-a-path-traversal-in-tar-extraction  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-09-23  
License: CC BY 4.0 with a link back

CVE-2025-59825 · Severity: medium · CVSS 4 · Published 2025-09-23

astral-tokio-tar has a path traversal in tar extraction

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 CVE-2025-59825 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-59825 being exploited in the wild.

**How severe is CVE-2025-59825?** Medium severity, with a CVSS score of 4, published 23 September 2025.

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

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

**Am I affected by CVE-2025-59825?** 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.5.4 or later

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


## Affected products

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

## Identifiers

- CVE-2025-59825
- GHSA-3wgq-wrwc-vqmv

## 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: `unpack_in` can chmod arbitrary directories by following symlinks](https://junglewise.ai/threats/astral-tokio-tar-unpack-in-can-chmod-arbitrary-directories-by-following-6d2f1c09)
- [astral-tokio-tar is Vulnerable to PAX Header Desynchronization](https://junglewise.ai/threats/astral-tokio-tar-is-vulnerable-to-pax-header-desynchronization-a46fcefa)
