CVEfocus › CVE database › CVE-2025-62518

CVE-2025-62518astral-tokio-tar Vulnerable to PAX Header Desynchronization

CVSS 8.1 HighEPSS 0.6% (higher than 46% of CVEs)Published 2025-10-21Updated 2025-10-22Assigner: GitHub_M

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.

CWE-843

What to do

Fixed builds are available from Debian, PyPI, crates.io: see the table below for the fixed version per release.

Debian, Ubuntu, crates.io have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
2Fix pending
1Under investigation
1Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04rust-astral-tokio-tarUnder investigationUBUNTU-CVE-2025-62518
Ubuntu 25.10rust-astral-tokio-tarWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-62518
Debian 14rust-astral-tokio-tarFixed0.5.6-1DEBIAN-CVE-2025-62518
Debian 13rust-astral-tokio-tarFix pendingDEBIAN-CVE-2025-62518
Red Hat Enterprise Linux 10trustee-guest-componentsNot affected
Red Hat Enterprise Linux 9trustee-guest-componentsNot affected
crates.io libraryastral-tokio-tarFixed0.5.6GHSA-j5gw-2vrg-8fgx
crates.io librarytokio-tarFix pendingGHSA-j5gw-2vrg-8fgx
PyPI libraryuvFixed0.9.5GHSA-w476-p2h3-79g9

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.