Email me

Rust advisories / tar

Vulnerability MediumRUSTSEC-2026-0068 · tar

RUSTSEC-2026-0068: tar-rs incorrectly ignores PAX size headers if header size is nonzero

Short answerA security vulnerability in the tar crate: tar-rs incorrectly ignores PAX size headers if header size is nonzero. GitHub rates it Medium. Fixed in 0.4.45: update to a fixed version.

Cratetar
TypeVulnerability
Affected versionsBefore 0.4.45.
Fixed in0.4.45
SeverityMedium (GitHub rating)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Published2026-03-19
Last changed2026-03-23
Also known asCVE-2026-33055, GHSA-gchp-q4r4-x4ff

What to do

  1. See which version you have: cargo tree -i tar (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p tar. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example tar = "0.4.45") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Versions 0.4.44 and below of tar-rs have conditional logic that skips the PAX size header in cases where the base header size is nonzero.

As part of CVE-2025-62518, the astral-tokio-tar project was changed to correctly honor PAX size headers in the case where it was different from the base header. This is almost the inverse of the astral-tokio-tar issue.

Any discrepancy in how tar parsers honor file size can be used to create archives that appear differently when unpacked by different archivers. In this case, the tar-rs (Rust tar) crate is an outlier in checking for the header size , other tar parsers (including e.g. Go archive/tar) unconditionally use the PAX size override. This can affect anything that uses the tar crate to parse archives and expects to have a consistent view with other parsers.

This issue has been fixed in version 0.4.45.

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.

Other advisories for tar

Full security history of tar

Up next

Same cratetar: security historyEvery advisory for this crate, and whether it is safe to use today.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