astral-sh tokio-tar up to 0.5.3 Entry::unpack_in_raw path traversal
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.1 | $0-$5k | 0.00 |
Summary
A vulnerability marked as critical has been reported in astral-sh tokio-tar up to 0.5.3. The impacted element is the function Entry::unpack_in_raw. This manipulation causes path traversal.
This vulnerability is handled as CVE-2025-59825. It is possible to launch the attack on the local host. There is not any exploit available.
It is suggested to upgrade the affected component.
Details
A vulnerability has been found in astral-sh tokio-tar up to 0.5.3 and classified as critical. Affected by this vulnerability is the function Entry::unpack_in_raw. The manipulation with an unknown input leads to a path traversal vulnerability. The CWE definition for the vulnerability is CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
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.
It is possible to read the advisory at github.com. This vulnerability is known as CVE-2025-59825 since 09/22/2025. The exploitation appears to be easy. Attacking locally is a requirement. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1006 according to MITRE ATT&CK.
The vulnerability scanner Nessus provides a plugin with the ID 266051 (Linux Distros Unpatched Vulnerability : CVE-2025-59825), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 0.5.4 eliminates this vulnerability. Applying the patch 036fdecc85c52458ace92dc9e02e9cef90684e75 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (266051) and EUVD (EUVD-2025-30897). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Vendor
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 5.1
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Path traversalCWE: CWE-22
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 266051
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-59825
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: tokio-tar 0.5.4
Patch: 036fdecc85c52458ace92dc9e02e9cef90684e75
Timeline
09/22/2025 CVE reserved09/24/2025 Advisory disclosed
09/24/2025 VulDB entry created
11/18/2025 VulDB entry last update
Sources
Product: github.comAdvisory: 12163
Status: Confirmed
CVE: CVE-2025-59825 (🔒)
GCVE (CVE): GCVE-0-2025-59825
GCVE (VulDB): GCVE-100-325651
EUVD: 🔒
Entry
Created: 09/24/2025 07:46Updated: 11/18/2025 19:13
Changes: 09/24/2025 07:46 (71), 10/03/2025 04:04 (2), 11/18/2025 19:13 (1)
Complete: 🔍
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.