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
Medium severity
Medium
See what this means
CVSS v3 Base Score
4.2
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 2026-04-13 ALAS2023-2026-1565 Fixed
Amazon Linux 2 - Core rust 2026-04-14 ALAS2-2026-3246 Fixed
Amazon Linux 2023 rust 2026-04-13 ALAS2023-2026-1568 Fixed
Amazon Linux 2023 rust-below 2026-04-13 ALAS2023-2026-1567 Fixed
Amazon Linux 2023 rust-cargo-c 2026-04-13 ALAS2023-2026-1566 Fixed

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
NVD CVSSv3 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N