CVE-2025-62518astral-tokio-tar Vulnerable to PAX Header Desynchronization
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | rust-astral-tokio-tar | Under investigation | UBUNTU-CVE-2025-62518 | |
| Ubuntu 25.10 | rust-astral-tokio-tar | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-62518 | |
| Debian 14 | rust-astral-tokio-tar | Fixed | 0.5.6-1 | DEBIAN-CVE-2025-62518 |
| Debian 13 | rust-astral-tokio-tar | Fix pending | DEBIAN-CVE-2025-62518 | |
| Red Hat Enterprise Linux 10 | trustee-guest-components | Not affected | ||
| Red Hat Enterprise Linux 9 | trustee-guest-components | Not affected | ||
| crates.io library | astral-tokio-tar | Fixed | 0.5.6 | GHSA-j5gw-2vrg-8fgx |
| crates.io library | tokio-tar | Fix pending | GHSA-j5gw-2vrg-8fgx | |
| PyPI library | uv | Fixed | 0.9.5 | GHSA-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.
- astral-sh tokio-tar: affected: < 0.5.6
References
- https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx
- https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9
- https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318
- https://edera.dev/stories/tarmageddon
- https://github.com/edera-dev/cve-tarmageddon
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.