Skip to main content
VulnerabilityPublished

CVE-2025-62518: astral-sh tokio-tar · Type Confusion

Affects astral-sh tokio-tarSource CVE Database V5

0

Not known to be exploited · CVSS 8.1 High : upgrade to 0.5.6 soon.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
crates.ioastral-sh/tokio-tarpkg:cargo/astral-sh/tokio-tarOther threatsAffected
  • <0.5.6
Fixed in
  • 0.5.6

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

Community reviews

Loading reviews…