CVE-2025-59825 in Astral products
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 tr...
Affects 0 products from 3 vendors. Facts below cite their sources.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-59825 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-035492-I |
| Published | 2025-09-23 |
| Last modified | 2026-10-11 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-22: Path Traversal
Attacker manipulates file path inputs to access files outside the intended directory.
CWE-61: CWE-61
Related attack patterns (CAPEC)
CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-61
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22
CAPEC-76 Manipulating Web Input to File System Calls via CWE-22
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22
CAPEC-79 Using Slashes in Alternate Encoding via CWE-22
Show all 6
CAPEC-126 Path Traversal via CWE-22
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2025-59825 affects versions 0.5.3 and earlier of astral-tokio-tar, a tar archive reading/writing library for async Rust. The vulnerability allows tar archives to extract files outside of their intended destination directory, potentially leading to path traversal attacks. Additionally, the Entry::allow_external_symlinks control can be bypassed, increasing the risk of unauthorized file access.
An attacker can craft a malicious tar archive that includes symlinks pointing outside the intended extraction directory. When the archive is unpacked using the Entry::unpack_in_raw API, files can be extracted to arbitrary locations on the filesystem. Furthermore, the default behavior of Entry::allow_external_symlinks being true, combined with a specific pair of symlinks, can be exploited to bypass the intended security controls.
Questions
What is CVE-2025-59825?
CVE-2025-59825 affects versions 0.5.3 and earlier of astral-tokio-tar, a tar archive reading/writing library for async Rust. The vulnerability allows tar archives to extract files outside of their intended destination directory, potentially leading to path traversal attacks. Additionally, the Entry::allow_external_symlinks control can be bypassed, increasing the risk of unauthorized file access.
Is CVE-2025-59825 actively exploited?
No confirmed active exploitation of CVE-2025-59825 as of 2026-10-12.
How do I remediate CVE-2025-59825?
Priority: HIGH.
What systems are affected by CVE-2025-59825?
CVE-2025-59825 affects Astral; Pivot; Tokio.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Astral","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-11.