Advisory

RUSTSEC-2025-0110

Also known as: CVE-2025-62518, GHSA-j5gw-2vrg-8fgx, RUSTSEC-2025-0111

Summary

astral-tokio-tar Vulnerable to PAX Header Desynchronization

Details

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 vulnerability was disclosed to multiple Rust tar parsers, all derived from
the original async-tar fork of tar-rs.

For additional information see
Edera's blog post.

Severity

High Basis: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Dates

Published
2025-10-21 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

astral-tokio-tar

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.5.6 (semver)

Fixed versions

0.5.6

Fix

  • Fixed version 0.5.6
    cargo update -p astral-tokio-tar --precise 0.5.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences