CVE-2025-62518: astral-sh tokio-tar · Type Confusion
Affects astral-sh tokio-tarSource CVE Database V5
Not known to be exploited · CVSS 8.1 High : upgrade to 0.5.6 soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.5.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade astral-sh/tokio-tar to 0.5.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.ioastral-sh/tokio-tarpkg:cargo/astral-sh/tokio-tarOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2025-62518, European organizations should immediately upgrade all instances of the astral-sh tokio-tar library to version 0.5.6 or later, where the vulnerability is patched. Audit all Rust projects and dependencies to identify usage of tokio-tar and ensure they are updated accordingly. Implement strict validation and sanitization of tar archives before processing, especially those originating from untrusted or external sources. Where possible, isolate archive processing in sandboxed or containerized environments to limit potential damage from malicious archives. Incorporate monitoring and alerting for unusual file extraction or modification activities related to tar archives. Educate developers and DevOps teams about the risks of processing untrusted archives and enforce policies to avoid manual processing of suspicious files. For supply chain security, verify the integrity and provenance of tar archives used in automated pipelines. Since no workarounds exist, patching remains the primary defense. Additionally, consider employing runtime application self-protection (RASP) or enhanced logging to detect exploitation attempts.
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.
References
- github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx (opens in a new tab)
- github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9 (opens in a new tab)
- github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318 (opens in a new tab)
- edera.dev/stories/tarmageddon (opens in a new tab)
- github.com/edera-dev/cve-tarmageddon (opens in a new tab)