Vulnerability · Published Oct 21, 2025 · Assigned by GitHub_M
CVE-2025-62518astral-tokio-tar Vulnerable to PAX Header Desynchronization
High 8.1
In plain English
A high-severity type confusion in tokio-tar from astral-sh. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | rust-astral-tokio-tar | no fix listed | DEBIAN-CVE-2025-62518 |
| Debian:14 | rust-astral-tokio-tar | 0.5.6-1 | DEBIAN-CVE-2025-62518 |
| Ubuntu:25.10 | rust-astral-tokio-tar | no fix listed | UBUNTU-CVE-2025-62518 |
| Ubuntu:26.04:LTS | rust-astral-tokio-tar | no fix listed | UBUNTU-CVE-2025-62518 |
Affected products (as reported)
Weakness: CWE-843 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
References
- https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx x_refsource_CONFIRM
- https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9 x_refsource_MISC
- https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318 x_refsource_MISC
- https://edera.dev/stories/tarmageddon x_refsource_MISC
- https://github.com/edera-dev/cve-tarmageddon x_refsource_MISC