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.
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| cargo | — | — |
| rust-astral-tokio-tar | — | — |
| rust-async-tar | — | — |
| rust-cargo-c | — | 0.10.11-1ubuntu1.1 |
| rust-tar | — | 0.4.43-4ubuntu0.1 |
| rustc | — | 1.75.0+dfsg0ubuntu1-0ubuntu7.4 |
| rustc-1.62 | — | 1.62.1+dfsg1-1ubuntu0.22.04.3 |
| rustc-1.74 | — | 1.74.1+dfsg0ubuntu1-0ubuntu15 |
| rustc-1.76 | — | 1.76.0+dfsg0ubuntu1-0ubuntu0.24.04.2 |
| rustc-1.77 | — | 1.77.2+dfsg1ubuntu1-0ubuntu0.24.04.1 |
| rustc-1.78 | — | 1.78.0+dfsg1ubuntu1-0ubuntu0.24.04.2 |
| rustc-1.79 | — | 1.79.0+dfsg1ubuntu1-0ubuntu0.24.04.1 |
| rustc-1.80 | — | 1.80.1+dfsg0ubuntu1-0ubuntu0.24.04.01 |
| rustc-1.81 | — | 1.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1 |
| rustc-1.82 | — | 1.82.0+dfsg0ubuntu0-0ubuntu0.24.04.1 |
| rustc-1.83 | — | 1.83.0+dfsg0ubuntu1~bpo2-0ubuntu0.24.04.1 |
| rustc-1.84 | — | 1.84.1+dfsg0ubuntu1~bpo2-0ubuntu2.24.04.1 |
| rustc-1.85 | — | 1.85.1+dfsg0ubuntu2-0ubuntu1.25.04.1 |
| rustc-1.88 | — | 1.88.0+dfsg0ubuntu1-0ubuntu2 |
| rustc-1.89 | — | 1.89.0+dfsg~24.04-0ubuntu0.24.04.2 |
| rustc-1.91 | — | 1.91.1+dfsg~24.04-0ubuntu0.24.04.2 |
References
Similar Threats
- Medium CVE-2026-5222
- Medium CVE-2026-39837
- Medium CVE-2026-39839
- Medium CVE-2026-39840
- Medium CVE-2026-39841
Site Security Check
Concerned your site may already be targeted?
BotEraser analyzes incoming traffic patterns and helps identify bot behavior consistent with known exploit attempts.
Check My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.