Vulnerability
CVE-2026-33056
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.
63 advisories report this vulnerability, across 10 ecosystems.
Advisories
-
ALAS2-2026-3246
Amazon Linux 2 2017.12 - ALAS2-2026-3246: medium priority package update for rust
-
ALAS2023-2026-1565
Amazon Linux 2023 - ALAS2023-2026-1565: Medium priority package update for clamav1.5
-
ALAS2023-2026-1566
Amazon Linux 2023 - ALAS2023-2026-1566: Medium priority package update for rust-cargo-c
-
ALAS2023-2026-1567
Amazon Linux 2023 - ALAS2023-2026-1567: Medium priority package update for rust-below
-
ALAS2023-2026-1568
Amazon Linux 2023 - ALAS2023-2026-1568: Medium priority package update for rust
-
ALPINE-CVE-2026-33056
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…
- ALPINE-EDGE-CVE-2026-33056
-
AZL-80315
CVE-2026-33056 affecting package tardev-snapshotter 3.2.0.tardev1-11
-
AZL-80499
CVE-2026-33056 affecting package rpm-ostree for versions less than 2024.4-10
-
AZL-80502
CVE-2026-33056 affecting package rust for versions less than 1.75.0-28
-
AZL-80511
CVE-2026-33056 affecting package rust for versions less than 1.90.0-7
-
AZL-80523
CVE-2026-33056 affecting package trident for versions less than 0.22.0-1
-
AZL-83037
CVE-2026-33056 affecting package clamav for versions less than 1.5.2-2
- CGA-2hf9-9gqq-84vj
- CGA-2rwf-c77q-fqh4
- CGA-2w5c-2fhc-7fxg
- CGA-2xm4-qqf6-x2h5
- CGA-37vv-2rcx-h8r8
- CGA-48pv-783q-42m3
- CGA-49px-6cv9-mwv9
- CGA-5pvm-5c4g-3h4j
- CGA-657j-c3q6-crcx
- CGA-69q5-6wwv-h374
- CGA-74fx-j6wg-999j
- CGA-7wv6-v6wf-x9rx
- CGA-9j94-mj2g-f4px
- CGA-9p8c-5pqp-h3j4
- CGA-c4f4-2vfh-457g
- CGA-cqhg-4g79-rvh6
- CGA-f2w3-6qg9-w2vw
- CGA-g573-g549-8m43
- CGA-gr5m-j97x-c5pv
- CGA-grq3-9g8p-3cg4
- CGA-h6rc-488j-jqrg
- CGA-j947-2rgh-h6v9
- CGA-jcpg-fww3-g964
- CGA-ph64-2mq9-c453
- CGA-qjqj-5x49-mfgq
- CGA-qmr6-jxrg-777h
- CGA-rh47-q38p-qgrc
- CGA-v3wc-9ccg-h6h5
- CGA-v48m-847g-w32q
- CGA-v4p5-vw9p-8g9p
- CGA-v734-v6p7-h29v
- CGA-v9mv-fgp5-9678
- CGA-wcwv-3mjj-m9fh
- CGA-wm3x-xgfw-cm72
- CGA-wmjc-hp9q-53jc
- CGA-xmvg-3c5r-mrvf
-
DEBIAN-CVE-2026-33056
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…
-
FEDORA-2026-2fc36ddefe
bpfman-0.5.4-7.fc44
-
FEDORA-2026-9e223ca14f
fido-device-onboard-0.5.5-8.fc44
-
FEDORA-2026-d62d7fe77e
bpfman-0.5.4-5.fc43
-
FEDORA-2026-e6237c2efe
fido-device-onboard-0.5.5-8.fc43
-
GHSA-j4xf-2g29-59ph
tar-rs `unpack_in` can chmod arbitrary directories by following symlinks
-
RHVEX-CVE-2026-33056
tar-rs: tar-rs: Arbitrary directory permission modification via crafted tar archive
-
RUSTSEC-2026-0067
`unpack_in` can chmod arbitrary directories by following symlinks
-
UBUNTU-CVE-2026-33056
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…
-
USN-8138-1
rust-tar vulnerability
-
USN-8138-2
rust-tar vulnerability
-
USN-8139-1
rust-cargo-c vulnerability
-
USN-8168-1
rustc vulnerability
-
USN-8168-2
rustc, rustc-1.76, rustc-1.77, rustc-1.78, rustc-1.79, rustc-1.80 vulnerability