Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-59825

MEDIUM 6.1EPSS 14%

astral-tokio-tar has a path traversal in tar extraction

Also known as GHSA-3wgq-wrwc-vqmv

Mitigation

  • Upgrade astral-tokio-tar to 0.5.4 or later.

Who should check

  • Projects that depend on crates.io package astral-tokio-tar (< 0.5.4)
  • Anyone running astral-sh tokio-tar < 0.5.4

Vulnerability facts

Affected
astral-tokio-tar < 0.5.4
Fixed in
0.5.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.1 (v4.0, CNA)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:UOpen in CVSS calculator
Show all 12 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
  • Exploit maturity: Unreported
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
CWE
CWE-22, CWE-61
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io astral-tokio-tar< 0.5.40.5.4osv
astral-sh tokio-tar< 0.5.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-59825. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-59825.md
Affected: astral-tokio-tar < 0.5.4
Fixed in: 0.5.4

Steps:
1. Search this machine and project for astral-tokio-tar (crates.io), astral-sh tokio-tar: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-59825 being exploited?

There is no confirmed exploitation: CVE-2025-59825 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-59825?

Medium: CVSS 6.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-59825?

astral-tokio-tar < 0.5.4.

Is there a fix for CVE-2025-59825?

Yes. Fixed in 0.5.4. Upgrade astral-tokio-tar to 0.5.4 or later.

How do I check if I'm affected by CVE-2025-59825?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors