Rust advisories / tokio-tar
Vulnerability HighRUSTSEC-2025-0111 · tokio-tar
RUSTSEC-2025-0111: `tokio-tar` parses PAX extended headers incorrectly, allows file smuggling
Short answerA security vulnerability in the tokio-tar crate: `tokio-tar` parses PAX extended headers incorrectly, allows file smuggling. GitHub rates it High. No fixed version: replace the crate or remove the affected code path.
| Crate | tokio-tar |
|---|---|
| Type | Vulnerability (format-injection) |
| Affected versions | Every version. |
| Fixed in | none |
| Severity | High (GitHub rating) |
| Published | 2025-10-21 |
| Last changed | 2026-02-04 |
| Also known as | CVE-2025-62518, GHSA-j5gw-2vrg-8fgx, RUSTSEC-2025-0110 |
| Affected functions | tokio_tar::Archive::new, tokio_tar::ArchiveBuilder::new |
What to do
- Find who pulls it in:
cargo tree -i tokio-tar. - Avoid the affected API (
tokio_tar::Archive::new,tokio_tar::ArchiveBuilder::new), or replace the crate.
Details from the advisory
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:
References
- Package: crates.io/crates/tokio-tar
- Advisory: rustsec.org/advisories/RUSTSEC-2025-0111.html
- Web: edera.dev/stories/tarmageddon
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?