Read the docs
TI-2025-37264 Aliases CVE-2025-59825GHSA-3wgq-wrwc-vqmv

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

Priority LOW 27CWE-22Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 4 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

astral-tokio-tar is a tar archive reading/writing library for async Rust. In versions 0.5.3 and earlier of astral-tokio-tar, tar archives may extract outside of their intended destination directory when using the Entry::unpack_in_raw API. Additionally, the Entry::allow_external_symlinks control (which defaults to true) could be bypassed via a pair of symlinks that individually point within the destination but combine to point outside of it. These behaviors could be used individually or combined to bypass the intended security control of limiting extraction to the given directory. This in turn would allow an attacker with a malicious tar archive to perform an arbitrary file write and potentially pivot into code execution. This issue has been patched in version 0.5.4. There is no workaround other than upgrading.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00217 12th percentileScored 2026-11-07
Fix Partial tokio-tar (astral-sh): 0.5.4astral-tokio-tar (crates.io): 0.5.4Red Hat: 4 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
astral-shtokio-tarbefore 0.5.40.5.4Patch availableCNA
—astral-tokio-tar (crates.io)before 0.5.40.5.4Patch availableGHSA-3wgq-wrwc-vqmv
  • tokio-tar Vendorastral-sh Affected before 0.5.4 Fixed in 0.5.4 Patch available CNA
  • astral-tokio-tar (crates.io) Vendor— Affected before 0.5.4 Fixed in 0.5.4 Patch available GHSA-3wgq-wrwc-vqmv

Remediation

  • Fix · CNA tokio-tar (astral-sh) Fixed in 0.5.4
  • Fix · GHSA-3wgq-wrwc-vqmv astral-tokio-tar (crates.io) Fixed in 0.5.4 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Confidential Compute AttestationAffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet: Fix deferred
Red Hat OpenShift Container Platform 4AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-59825
  2. 2026-10-03 Alias added: GHSA-3wgq-wrwc-vqmv

References

  • TI-2025-38758 astral-tokio-tar Vulnerable to PAX Header Desynchronization CVSS 3.1HIGH 8.1
  • TI-2026-78723 Path traversal in Astral uv lets attackers delete arbitrary files CVSS 4.0HIGH 8.7
  • TI-2025-43946 Path traversal in Astral uv sdist extraction allows file writes CVSS 4.0HIGH 8.7
  • TI-2026-78722 Path traversal in uv lets malicious wheels write files CVSS 4.0HIGH 8.7
  • TI-2025-34180 uv is vulnerable to ZIP payload obfuscation through parsing differentials CVSS 4.0MEDIUM 6.8
  • TI-2026-66129 uv: Path traversal on Windows through wheel extraction CVSS 4.0MEDIUM 5.9

Sources