CVE-2025-62518 Details
Description
astral-tokio-tar is a tar archive reading/writing library for async Rust. Versions of astral-tokio-tar prior to 0.5.6 contain a boundary parsing vulnerability that allows attackers to smuggle additional archive entries by exploiting inconsistent PAX/ustar header handling. When processing archives with PAX-extended headers containing size overrides, the parser incorrectly advances stream position based on ustar header size (often zero) instead of the PAX-specified size, causing it to interpret file content as legitimate tar headers. This issue has been patched in version 0.5.6. There are no workarounds.
A boundary parsing vulnerability has been identified in the `astral-tokio-tar` library, which is a tar archive reading and writing library for asynchronous Rust. This vulnerability is present in versions prior to 0.5.6 and allows attackers to smuggle additional archive entries by exploiting inconsistent handling of PAX and ustar headers. When the library processes archives with PAX-extended headers that override file sizes, it incorrectly advances the stream position based on the ustar header size, which is often zero. This misalignment causes the parser to misinterpret file content as valid tar headers, leading to the extraction of unintended files. The vulnerability has been patched in version 0.5.6, and there are no known workarounds.
Users are advised to upgrade to version 0.5.6 or later. If immediate patching is not possible, consider using the standard tar crate, which handles PAX headers correctly, as a temporary replacement.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 21, 2025CISA-ADP
Assessed Oct 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://edera.dev/stories/tarmageddon | [email protected] | Media CoverageRemedyTechnical Analysis |
| https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318 | [email protected] | Source CodeVendor |
| https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx | [email protected] | AdvisoryRemedyVendor |
| https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9 | [email protected] | AdvisoryRemedyVendor |
| https://github.com/edera-dev/cve-tarmageddon | [email protected] | ExploitTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-843 | Access of Resource Using Incompatible Type ('Type Confusion') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astral-tokio-tar | All versions |
CPE
Remediation
| |
| astral-uv | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | New CVE Received | [email protected] |
Volerion