astral-tokio-tar has a path traversal in tar extraction
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| astral-sh | tokio-tar | before 0.5.4 | 0.5.4 | Patch available | CNA |
| — | astral-tokio-tar (crates.io) | before 0.5.4 | 0.5.4 | Patch available | GHSA-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 →
| Product | Status | Plan or fix |
|---|---|---|
| Confidential Compute Attestation | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59825
- 2026-10-03 Alias added: GHSA-3wgq-wrwc-vqmv
References
Other 5
- https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-3wgq-wrwc-vqmv
- https://github.com/astral-sh/uv/issues/12163
- https://github.com/astral-sh/tokio-tar/commit/036fdecc85c52458ace92dc9e02e9cef90684e75
- https://github.com/google/security-research/security/advisories/GHSA-9p78-p5g6-gcj8
- https://github.com/astral-sh/tokio-tar
More astral-sh vulnerabilities
- 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
- CVE-2025-59825 · CVE Program
- CVE-2025-59825 · NVD
- FIRST EPSS
- GHSA-3wgq-wrwc-vqmv · GitHub Advisory Database · CC BY 4.0
- CVE-2025-59825 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences