CVE-2026-33056
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tar | crates.io | 0.4.45 |
| deno | Wolfi | 2.7.8-r0 |
| rustfmt | Amazon Linux | 1.94.0-1.amzn2023.0.2 |
| below | Amazon Linux | 0.11.0-1.amzn2023.0.3 |
| clamav1.5-lib | Amazon Linux | 1.5.1-1.amzn2023.0.5 |
| rust-src | Amazon Linux | 1.94.0-1.amzn2.0.2 |
| rye | Wolfi | 0.44.0-r7 |
| rust-toolset-srpm-macros | Amazon Linux | 1.94.0-1.amzn2.0.2 |
| clamav1.5 | Amazon Linux | 1.5.1-1.amzn2023.0.5 |
| cargo-c | Wolfi | 0.10.21-r3 |
| rust | Amazon Linux | 1.94.0-1.amzn2023.0.2, 1.94.0-1.amzn2.0.2 |
| clippy | Amazon Linux | 1.94.0-1.amzn2.0.2 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| alexcrichton | tar-rs | < 0.4.45 |
| wolfi | deno | 0 |
| amazon:2023 | rustfmt | 0 |
| amazon:2023 | below | 0 |
| amazon:2023 | clamav1.5-lib | 0 |
| amazon:2 | rust-src | 0 |
| wolfi | rye | 0 |
| amazon:2 | rust-toolset-srpm-macros | 0 |
| amazon:2023 | clamav1.5 | 0 |
| wolfi | cargo-c | 0 |
| amazon:2 | rust | 0 |
| amazon:2023 | rust | 0 |
| amazon:2 | clippy | 0 |
| amazon:2023 | clamav1.5-devel | 0 |
| amazon:2023 | clamav1.5-filesystem | 0 |
| chainguard | buck2 | 0 |
| chainguard | fnm | 0 |
| amazon:2 | rustfmt | 0 |
| amazon:2023 | clippy | 0 |
| chainguard | mise | 0 |
…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
References
- https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph x_refsource_CONFIRM
- https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-33056 advisory
- https://github.com/advisories/GHSA-j4xf-2g29-59ph advisory
- https://github.com/alexcrichton/tar-rs url
- https://rustsec.org/advisories/RUSTSEC-2026-0067.html url