CVEfocus › CVE database › CVE-2025-59825

CVE-2025-59825astral-tokio-tar has a path traversal in tar extraction

CVSS 6.1 MediumEPSS 0.3% (higher than 14% of CVEs)Published 2025-09-23Updated 2025-09-24Assigner: GitHub_M

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.

CWE-22CWE-61

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

2Fixed
4Fix pending
1Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-astral-tokio-tarFix pendingUBUNTU-CVE-2025-59825
Ubuntu 26.04rust-astral-tokio-tarUnder investigationUBUNTU-CVE-2025-59825
Ubuntu 25.10rust-astral-tokio-tarWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-59825
Debian 14rust-astral-tokio-tarFixed0.5.5-1DEBIAN-CVE-2025-59825
Debian 13rust-astral-tokio-tarFix pendingDEBIAN-CVE-2025-59825
Red Hat Enterprise Linux 10trustee-guest-componentsFix pending
Fix deferred
Red Hat Enterprise Linux 9trustee-guest-componentsFix pending
Fix deferred
crates.io libraryastral-tokio-tarFixed0.5.4GHSA-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.

References

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.