CVE-2026-33056
Public on 2026-03-20
Modified on 2026-03-24
Description
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.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 2023 | amazon-efs-utils | Pending Fix | ||
| Amazon Linux 2 - Aws-nitro-enclaves-cli Extra | aws-nitro-enclaves-cli | Pending Fix | ||
| Amazon Linux 2023 | aws-nitro-enclaves-cli | Pending Fix | ||
| Amazon Linux 2023 | clamav1.5 | Pending Fix | ||
| Amazon Linux 2 - Core | rust | Pending Fix | ||
| Amazon Linux 2023 | rust | Pending Fix | ||
| Amazon Linux 2023 | rust-below | Pending Fix | ||
| Amazon Linux 2023 | rust-cargo-c | Pending Fix |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |