CVE-2025-62518
HIGH 8.1CVSS 3.1astral-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.
- Published
- 21 Oct 2025
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-843
- Also known as
- GHSA-j5gw-2vrg-8fgxRUSTSEC-2025-0110RUSTSEC-2025-0111
- Sources
- NVDJSONOSV GHSA-j5gw-2vrg-8fgxJSONOSV RUSTSEC-2025-0110JSONOSV RUSTSEC-2025-0111JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | astral-tokio-tar | < 0.5.6 | 0.5.6 |
| OSV | crates.io | tokio-tar | <= 0.3.1 | |
| OSV | crates.io | astral-tokio-tar | >= 0.0.0-0, < 0.5.6 | 0.5.6 |
| OSV | crates.io | tokio-tar | >= 0.0.0-0 |
References
- https://edera.dev/stories/tarmageddon · WEB
- https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318 · WEB
- https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx · WEB
- https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9 · WEB
- https://github.com/edera-dev/cve-tarmageddon · WEB
- https://github.com/astral-sh/tokio-tar · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0110.html · WEB, ADVISORY
- https://rustsec.org/advisories/RUSTSEC-2025-0111.html · WEB, ADVISORY
- https://crates.io/crates/astral-tokio-tar · PACKAGE
- https://crates.io/crates/tokio-tar · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 21 Oct 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Oct 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Oct 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Oct 2025)