CVE-2025-59825 Details
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.
A path traversal vulnerability has been identified in the astral-tokio-tar library, which is used for reading and writing tar archives in asynchronous Rust. This vulnerability exists in versions through 0.5.3. When the Entry::unpack_in_raw API is used, tar archives may extract files outside of their intended destination directory. Additionally, the Entry::allow_external_symlinks control, which defaults to true, could be bypassed with a pair of symlinks that individually point within the destination but combine to point outside of it. These issues could be used separately or together to circumvent the security control that restricts extraction to the specified directory. As a result, an attacker could use a malicious tar archive to perform arbitrary file writes and potentially execute code by overwriting a file that is subsequently executed or used to run code.
Users are advised to upgrade to version 0.5.4 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 23, 2025CISA-ADP
Assessed Sep 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/astral-sh/tokio-tar/commit/036fdecc85c52458ace92dc9e02e9cef90684e75 | [email protected] | Source CodeVendor |
| https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-3wgq-wrwc-vqmv | [email protected] | AdvisoryRemedyVendor |
| https://github.com/astral-sh/uv/issues/12163 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-61 | UNIX Symbolic Link (Symlink) Following | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astral-sh tokio-tar | All versions |
CPE
Remediation
| |
| astral-sh uv | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 11, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 23, 2025 | New CVE Received | [email protected] |
Volerion