| Name | CVE-2026-33056 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1131481 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| rust-tar (PTS) | bullseye | 0.4.26-1 | vulnerable |
| bookworm | 0.4.38-1 | vulnerable |
| trixie | 0.4.43-4 | vulnerable |
| forky, sid | 0.4.45-2 | fixed |
| rustc (PTS) | bullseye | 1.48.0+dfsg1-2 | vulnerable |
| bookworm | 1.63.0+dfsg1-2 | vulnerable |
| trixie | 1.85.0+dfsg3-1 | vulnerable |
| forky, sid | 1.94.1+dfsg1-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| rust-tar | source | (unstable) | 0.4.45-1 | | | 1131481 |
| rustc | source | (unstable) | 1.92.0+dfsg1-2 | | | |
Notes
[bullseye] - rustc <postponed> (Minor issue, parsing inconsistencies among tar libraries, requires recompiling rdeps)
[bullseye] - rust-tar <postponed> (Minor issue, parsing inconsistencies among tar libraries, requires recompiling rdeps)
https://rustsec.org/advisories/RUSTSEC-2026-0067.html
https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph
Fixed by: https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446 (0.4.45)