Live threats

All CVEs / Tar Project

CVE-2026-33056Tar Project Tar

Medium 5.1 No auth needed

Priority
46
CVSS 4.0
5.1
EPSS
—
Auth required
No
Published
Mar 20, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-61
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, 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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tar.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io tar < 0.4.45 0.4.45 cargo update -p tar --precise 0.4.45
crates.io tar ≥ 0.0.0-0 < 0.4.45 0.4.45 cargo update -p tar --precise 0.4.45

Per OSV / GitHub Advisories (GHSA-j4xf-2g29-59ph, RUSTSEC-2026-0067). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
tar_projecttar< 0.4.45

Official sources

References

Links published by the sources. Open them with care.