CVE-2025-59825astral-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.
What to do
Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-astral-tokio-tar | Fix pending | UBUNTU-CVE-2025-59825 | |
| Ubuntu 26.04 | rust-astral-tokio-tar | Under investigation | UBUNTU-CVE-2025-59825 | |
| Ubuntu 25.10 | rust-astral-tokio-tar | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-59825 | |
| Debian 14 | rust-astral-tokio-tar | Fixed | 0.5.5-1 | DEBIAN-CVE-2025-59825 |
| Debian 13 | rust-astral-tokio-tar | Fix pending | DEBIAN-CVE-2025-59825 | |
| Red Hat Enterprise Linux 10 | trustee-guest-components | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | trustee-guest-components | Fix pending Fix deferred | ||
| crates.io library | astral-tokio-tar | Fixed | 0.5.4 | GHSA-3wgq-wrwc-vqmv |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- astral-sh tokio-tar: affected: < 0.5.4
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.