Home / astral-sh / tokio-tar / CVE-2025-59825
CVE-2025-59825: is it exploited, and which versions of astral-sh tokio-tar are affected and fixed?
CVE-2025-59825 is a path traversal (reading or writing files outside the intended folder) vulnerability in astral-sh tokio-tar. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: astral-tokio-tar before 0.5.4 (GitHub advisory GHSA-3wgq-wrwc-vqmv). Fixed in 0.5.4 (GitHub advisory GHSA-3wgq-wrwc-vqmv). Severity: Medium (6.1, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:17 UTC.
What is CVE-2025-59825?
astral-tokio-tar has a path traversal in tar extraction
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.
From the CVE record by GitHub_M, last updated September 24, 2025, 18:41 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| astral-sh | tokio-tar | < 0.5.4 |
As the CVE record by GitHub_M states it, last updated September 24, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | astral-tokio-tar | < 0.5.4 | 0.5.4 | GHSA-3wgq-wrwc-vqmv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 18, 2025. Summary: astral-tokio-tar has a path traversal in tar extraction.
How severe is CVE-2025-59825?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.1 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-59825 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, September 24, 2025)
- EPSS
- 0.23% probability of exploitation activity in the next 30 days, percentile 14.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-61 UNIX Symbolic Link (Symlink) Following
Where are the vendor advisories and references?
- https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-3wgq-wrwc-vqmv x_refsource_CONFIRM
- https://github.com/astral-sh/uv/issues/12163 x_refsource_MISC
- https://github.com/astral-sh/tokio-tar/commit/036fdecc85c52458ace92dc9e02e9cef90684e75 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- September 22, 2025
- Published
- September 23, 2025, 20:00 UTC
- CVE record updated
- September 24, 2025, 18:41 UTC by GitHub_M
- NVD
- Deferred, last modified October 11, 2026, 20:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:17 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect tokio-tar?
- Mar 20, 2026CVE-2026-32766 astral-sh tokio-tar: interpretation Conflict
- Oct 21, 2025CVE-2025-62518 astral-sh tokio-tar: type confusion
Questions about CVE-2025-59825
Is CVE-2025-59825 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.23% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of astral-sh tokio-tar are affected by CVE-2025-59825?
astral-tokio-tar before 0.5.4, per the GitHub advisory GHSA-3wgq-wrwc-vqmv. The tables above give every range the sources list.
Which version fixes CVE-2025-59825?
0.5.4, per the GitHub advisory GHSA-3wgq-wrwc-vqmv. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-59825?
Medium (6.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-59825?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.