Email me

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.

Cratetokio-tar
TypeVulnerability (format-injection)
Affected versionsEvery version.
Fixed innone
SeverityHigh (GitHub rating)
Published2025-10-21
Last changed2026-02-04
Also known asCVE-2025-62518, GHSA-j5gw-2vrg-8fgx, RUSTSEC-2025-0110
Affected functionstokio_tar::Archive::new, tokio_tar::ArchiveBuilder::new

What to do

  1. Find who pulls it in: cargo tree -i tokio-tar.
  2. 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

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 →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ