Tar Archive Vulnerability in Astral-Tokio-Tar Library
CVE-2025-59825
6.1MEDIUM
What is CVE-2025-59825?
The astral-tokio-tar library for async Rust exhibits a vulnerability in versions 0.5.3 and earlier that may allow tar archives to be extracted outside their intended destination directories. This occurs through the Entry::unpack_in_raw API, which fails to enforce the security controls that limit file extraction to specific directories. Additionally, the Entry::allow_external_symlinks setting, which is enabled by default, can be bypassed. This manipulation could allow an attacker to create a malicious tar archive that performs arbitrary file writes, potentially leading to unauthorized code execution within the system. Users are strongly advised to upgrade to version 0.5.4 to mitigate this issue.
Affected Version(s)
tokio-tar < 0.5.4