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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2025-10-21T12:00:00.000Z
- Modified: 2026-10-12T18:00:11.489Z
- Also known as: GHSA-j5gw-2vrg-8fgx, RUSTSEC-2025-0110, RUSTSEC-2025-0111
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- astral-sh tokio-tar: < 0.5.6
- astral-tokio-tar (crates.io): before 0.5.6; from 0.0.0-0 before 0.5.6
- tokio-tar (crates.io): up to 0.3.1; from 0.0.0-0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 8.1 High `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> (web)
- <https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9> (web)
- <https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318> (web)
- <https://edera.dev/stories/tarmageddon> (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> (advisory, web)
- <https://rustsec.org/advisories/RUSTSEC-2025-0111.html> (advisory, web)
- <https://crates.io/crates/astral-tokio-tar> (package)
- <https://crates.io/crates/tokio-tar> (package)

## Sources

- CVE List: [CVE-2025-62518](https://www.cve.org/CVERecord?id=CVE-2025-62518), CVE Terms of Use, modified 2025-10-22
- GitHub Advisory Database: [GHSA-j5gw-2vrg-8fgx](https://github.com/advisories/GHSA-j5gw-2vrg-8fgx), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0110](https://rustsec.org/advisories/RUSTSEC-2025-0110.html), CC0-1.0, modified 2026-10-12
- RustSec Advisory Database: [RUSTSEC-2025-0111](https://rustsec.org/advisories/RUSTSEC-2025-0111.html), CC0-1.0, modified 2026-02-04
- NVD: [CVE-2025-62518](https://nvd.nist.gov/vuln/detail/CVE-2025-62518), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2025-62518 · Whole record: https://cve.day/CVE-2025-62518.json · Rebuilt by cve.day 2026-11-25T22:59:06.608Z
