PT-2026-26573 · Tar-Rs+2 · Tar-Rs+2

Xokdvium

·

Published

2026-03-19

·

Updated

2026-04-14

·

CVE-2026-33056

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:C/A:N
Name of the Vulnerable Software and Affected Versions tar-rs versions 0.4.44 and below
Description The tar-rs crate’s unpack dir function uses fs::metadata() to verify if a path already exists as a directory during tar archive unpacking. Because fs::metadata() follows symbolic links, a specially crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to incorrectly treat the symlink target as a valid existing directory. This leads to the application of chmod to the target, allowing an attacker to modify permissions of arbitrary directories outside the extraction root. The fs::metadata() function follows symbolic links, which is the root cause of the issue. The fix involves using fs::symlink metadata() in unpack dir to detect and reject symlinks instead of following them.
Recommendations Versions 0.4.44 and below should be updated to version 0.4.45 or later.

Exploit

Fix

Weakness Enumeration

Related Identifiers

BDU:2026-05929
CVE-2026-33056
GHSA-J4XF-2G29-59PH
RUSTSEC-2026-0067
USN-8138-1
USN-8138-2
USN-8139-1
USN-8168-1
USN-8168-2

Affected Products

Linuxmint
Ubuntu
Tar-Rs