cbcvebase.
CVE-2026-33056
published 2026-03-20

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…

medium5.1CVSS 4.0
AVNACLATNPRNUIAVCNVILVANSCNSINSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
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.

Affected

15 ranges
VendorProductVersion rangeFixed in
alexcrichtontar-rs< 0.4.450.4.45
debianrust-tar< rust-tar 0.4.45-1 (forky)rust-tar 0.4.45-1 (forky)
debianrustc< rust-tar 0.4.45-1 (forky)rust-tar 0.4.45-1 (forky)
gnutar>= 0 < 0.4.450.4.45
gnutar>= 0.0.0-0 < 0.4.450.4.45
msrcazl3_kata-containers-cc_3.15.0.aks0-7_on_azure_linux_3.0
msrcazl3_rpm-ostree_2024.4-6_on_azure_linux_3.0
msrcazl3_rust_1.75.0-25_on_azure_linux_3.0
msrcazl3_rust_1.90.0-4_on_azure_linux_3.0
msrcazl3_trident_0.21.0-1_on_azure_linux_3.0
msrccbl2_kata-containers-cc_3.2.0.azl2-8_on_cbl_mariner_2.0
msrccbl2_kata-containers_3.2.0.azl2-7_on_cbl_mariner_2.0
msrccbl2_rpm-ostree_2022.1-8_on_cbl_mariner_2.0
msrccbl2_rust_1.72.0-14_on_cbl_mariner_2.0
tar_projecttar< 0.4.450.4.45

CVSS provenance

nvdv4.05.1MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
osv5.1MEDIUM