tar-rs: unpack_in can chmod arbitrary directories by following symlinks
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| alexcrichton | tar-rs | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Alexcrichton | Tar-rs |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-j4xf-2g29-59ph | tar-rs `unpack_in` can chmod arbitrary directories by following symlinks |
Ubuntu USN |
USN-8138-1 | tar-rs vulnerability |
Ubuntu USN |
USN-8139-1 | cargo-c vulnerability |
Ubuntu USN |
USN-8168-1 | Rust vulnerability |
Ubuntu USN |
USN-8168-2 | Rust vulnerability |
Ubuntu USN |
USN-8138-2 | tar-rs vulnerability |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.394% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Tar Project
Tar Project tar |
|
| CPEs | cpe:2.3:a:tar_project:tar:*:*:*:*:*:rust:*:* | |
| Vendors & Products |
Tar Project
Tar Project tar |
|
| Metrics |
cvssV3_1
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-59 | |
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Alexcrichton
Alexcrichton tar-rs |
|
| Vendors & Products |
Alexcrichton
Alexcrichton tar-rs |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | tar-rs: unpack_in can chmod arbitrary directories by following symlinks | |
| Weaknesses | CWE-61 | |
| References |
| |
| Metrics |
cvssV4_0
|