CVE-2025-62518
HIGH8.1EPSS 0.02%`tokio-tar` parses PAX extended headers incorrectly, allows file smuggling
Description
The archive reader incorrectly handles PAX extended headers, when the ustar header incorrectly specifies zero size (`size=000000000000`), while a PAX header specifies a non-zero size, `tokio-tar::Archive` is going to read the file content as tar entry header. This can be used by a tar file to present different content to `tokio-tar` compared to other tar reader implementations. This bug is also known as `CVE-2025-62518` and `GHSA-j5gw-2vrg-8fgx`, as those crates share a common ancestor codebase. The `tokio-tar` crate is archived and no longer maintained, we recommend you switch to an alternative crate such as: - [`astral-tokio-tar`](https://crates.io/crates/astral-tokio-tar)
Affected packages (6)
- crates.io/astral-tokio-tarfrom 0, < 0.5.6
- crates.io/astral-tokio-tar>= 0.0.0-0, < 0.5.6
- crates.io/tokio-tarfrom 0, <= 0.3.1
- crates.io/tokio-tar>= 0.0.0-0
- Debian/rust-astral-tokio-tarfrom 0
- PyPI/uvfrom 0, < 0.9.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
References (16)
- ADVISORYhttps://github.com/advisories/GHSA-j5gw-2vrg-8fgx
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-62518
- PATCHhttps://crates.io/crates/astral-tokio-tar
- PATCHhttps://crates.io/crates/tokio-tar
- PATCHhttps://github.com/astral-sh/tokio-tar
- PATCHhttps://github.com/astral-sh/uv
- WEBhttps://edera.dev/stories/tarmageddon
- WEBhttps://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318
- WEBhttps://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx
- WEBhttps://github.com/astral-sh/uv/commit/ae450662d1546e9853f67a8c61a506d3a892d963
- WEBhttps://github.com/astral-sh/uv/pull/16387
- WEBhttps://github.com/astral-sh/uv/releases/tag/0.9.5
- WEBhttps://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9
- WEBhttps://github.com/edera-dev/cve-tarmageddon
- WEBhttps://rustsec.org/advisories/RUSTSEC-2025-0110.html
- WEBhttps://rustsec.org/advisories/RUSTSEC-2025-0111.html