Skip to content
OpenAdvisories
High · 8.1 Public exploit CVE-2025-62518 EUVD-2025-35176GHSA-j5gw-2vrg-8fgxRUSTSEC-2025-0110RUSTSEC-2025-0111

astral-tokio-tar Vulnerable to PAX Header Desynchronization

Published Oct 21, 2025 · Updated Oct 22, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
astral-sh tokio-tar < 0.5.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-astral-tokio-tar 0.5.6-1 —
Debian 13 rust-astral-tokio-tar No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS rust-astral-tokio-tar No fix yet —
Ubuntu 25.10 rust-astral-tokio-tar No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 python-uv 0.7.18-160000.3.1 SUSE-SU-2026:20077-1
SLES 16.0 python-uv 0.7.18-160000.3.1 SUSE-SU-2026:20077-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-uv 0.9.5-1.1 openSUSE-SU-2025:15658-1
openSUSE Tumbleweed zed 1.24.2-1.1 openSUSE-SU-2026:12355-1
openSUSE Leap 16.0 python-uv 0.7.18-160000.3.1 openSUSE-SU-2026:20026-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling pixi +1 0.57.0-r1 —
Wolfi rolling wash No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io astral-tokio-tar < 0.5.6 0.5.6 GHSA-j5gw-2vrg-8fgx
crates.io astral-tokio-tar >= 0.0.0-0, < 0.5.6 0.5.6 RUSTSEC-2025-0110
crates.io tokio-tar <= 0.3.1 — GHSA-j5gw-2vrg-8fgx
crates.io tokio-tar >= 0.0.0-0 — RUSTSEC-2025-0111

Advisories 4

References