CVE-2025-62518 astral-tokio-tar Vulnerable to PAX Header Desynchronization
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 2 fixed, 1 partially fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux kata-containers-cc(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| debian/rust-astral-tokio-tar(Debian 13) | = 0.5.2-2; = 0.5.5-1; = 0.5.6-1; = 0.5.6-2 +5 more | No fix listed | No fix yet |
| ubuntu/rust-astral-tokio-tar(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| crates.io tokio-tar(crates.io) | <= 0.3.1; >= 0.0.0-0 | after 0.3.1 | Partially fixed |
| crates.io astral-tokio-tar(crates.io) | < 0.5.6; <= 0.5.5; >= 0.0.0-0, < 0.5.6 | 0.5.6 | Fixed |
| debian/rust-astral-tokio-tar(Debian 14) | < 0.5.6-1; = 0.5.2-2; = 0.5.5-1 | 0.5.6-1 | Fixed |
| astral-sh tokio-tar | = < 0.5.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kata-containers-cc(Azure Linux:3.0) | All versions | No fix listed |
| crates.io astral-tokio-tar(crates.io) | < 0.5.6 | 0.5.6 |
| crates.io tokio-tar(crates.io) | <= 0.3.1 | No fix listed |
| crates.io astral-tokio-tar(crates.io) | >= 0.0.0-0, < 0.5.6 | 0.5.6 |
| crates.io tokio-tar(crates.io) | >= 0.0.0-0 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | All versions | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.5.2-2 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.5.5-1 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.5.6-1 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.5.6-2 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.6.0-1 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.6.1-1 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.6.2-1 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:13) | = 0.6.4-1 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:14) | < 0.5.6-1 | 0.5.6-1 |
| debian/rust-astral-tokio-tar(Debian:14) | = 0.5.2-2 | No fix listed |
| debian/rust-astral-tokio-tar(Debian:14) | = 0.5.5-1 | No fix listed |
| crates.io astral-tokio-tar(crates.io) | <= 0.5.5 | No fix listed |
| astral-sh tokio-tar | = < 0.5.6 | No fix listed |
| ubuntu/rust-astral-tokio-tar(Ubuntu:26.04) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx vendor-advisory
- https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9 vendor-advisory
- https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318 patch
- https://edera.dev/stories/tarmageddon
- github.com product
- https://github.com/edera-dev/cve-tarmageddon
- rustsec.org vendor-advisory
- rustsec.org vendor-advisory
- crates.io product
- crates.io product
- Debian Security Tracker CVE-2025-62518 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking