{"id":"CVE-2026-33056","published":"2026-03-20T07:11:10Z","modified":"2026-03-20T12:59:30Z","title":"tar-rs: unpack_in can chmod arbitrary directories by following symlinks","vendor":"alexcrichton","product":"tar-rs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00432,"percentile":0.38399,"provenance":"source"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446","tags":["x_refsource_MISC"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":7.68},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"alexcrichton","affectedVersions":[{"vendor":"alexcrichton","product":"tar-rs","versions":["< 0.4.45"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-20T12:59:15.595639Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"tar","vulnerableRanges":["<0.4.45",">=0.0.0-0, <0.4.45"],"patched":["0.4.45"],"from":["GHSA-j4xf-2g29-59ph","RUSTSEC-2026-0067"],"provenance":"source"}],"summary":{"text":"In tar-rs (the Rust tar archive library, versions 0.4.44 and below), the unpack_dir function uses fs::metadata(), which follows symbolic links, when checking whether an existing path is a directory. An attacker who can supply a crafted tar archive for extraction, via a user opening or processing it (user interaction), can cause the library to chmod arbitrary directories outside the extraction root, requiring no privileges and only network-reachable delivery of the archive.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:49Z"},"euvd":{"id":"EUVD-2026-13616","exploited":false,"provenance":"source"}}