Ad

CVE-2026-33056

MEDIUM CVSS 4.0: 5.1 EPSS 0.01%
Updated Mar 24, 2026
Tar_Project
Parameter Value
CVSS 5.1 (MEDIUM)
Affected Versions before 0.4.45
Fixed In 0.4.45
Type CWE-61 (UNIX Symlink Following)
Vendor Tar_Project
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Tar_Project Tar
cpe:2.3:a:tar_project:tar:*:*:*:*:*:rust:*:*
0.4.45