VDB

CVE-2026-33056

CVE-2026-33056 PUBLISHED CVSS 5.1 MEDIUM

tar-rs: unpack_in can chmod arbitrary directories by following symlinks

Reported by github_m · Published March 20, 2026

tar is fixed in 0.4.45 (crates.io)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
tarcrates.io0.4.45
denoWolfi2.7.8-r0
rustfmtAmazon Linux1.94.0-1.amzn2023.0.2
belowAmazon Linux0.11.0-1.amzn2023.0.3
clamav1.5-libAmazon Linux1.5.1-1.amzn2023.0.5
rust-srcAmazon Linux1.94.0-1.amzn2.0.2
ryeWolfi0.44.0-r7
rust-toolset-srpm-macrosAmazon Linux1.94.0-1.amzn2.0.2
clamav1.5Amazon Linux1.5.1-1.amzn2023.0.5
cargo-cWolfi0.10.21-r3
rustAmazon Linux1.94.0-1.amzn2023.0.2, 1.94.0-1.amzn2.0.2
clippyAmazon Linux1.94.0-1.amzn2.0.2

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
5.1
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

Affected products

VendorProductVersions
alexcrichtontar-rs< 0.4.45
wolfideno0
amazon:2023rustfmt0
amazon:2023below0
amazon:2023clamav1.5-lib0
amazon:2rust-src0
wolfirye0
amazon:2rust-toolset-srpm-macros0
amazon:2023clamav1.50
wolficargo-c0
amazon:2rust0
amazon:2023rust0
amazon:2clippy0
amazon:2023clamav1.5-devel0
amazon:2023clamav1.5-filesystem0
chainguardbuck20
chainguardfnm0
amazon:2rustfmt0
amazon:2023clippy0
chainguardmise0

…and 49 more

Timeline

  • Mar 19, 2026 CVE Published
  • Mar 20, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 20, 2026 PoC Published (5 in total, the first dated here)
  • Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 23, 2026 Security Advisory (16 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-33056
vulnetix vdb fixes CVE-2026-33056

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-33056/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›