Email me

Rust advisories / tar

Vulnerability MediumRUSTSEC-2026-0067 · tar

RUSTSEC-2026-0067: `unpack_in` can chmod arbitrary directories by following symlinks

Short answerA security vulnerability in the tar crate: `unpack_in` can chmod arbitrary directories by following symlinks. 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:N/VI:L/VA:N/SC:N/SI:N/SA:N
Published2026-03-19
Last changed2026-03-23
Also known asCVE-2026-33056, GHSA-j4xf-2g29-59ph
Affected functionstar::Entry::unpack, tar::Entry::unpack_in

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

In versions 0.4.44 and below of tar-rs, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to treat the symlink target as a valid existing directory , and subsequently apply chmod to it. This allows an attacker to modify the permissions of arbitrary directories outside the extraction root.

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