Vulnerability · Published Mar 20, 2026 · Assigned by GitHub_M
CVE-2026-33056tar-rs: unpack_in can chmod arbitrary directories by following symlinks
Medium 5.1
In plain English
A medium-severity security flaw in tar-rs from alexcrichton. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | chromium-rust | 1.94.0-r1 | ALPINE-CVE-2026-33056 |
| Alpine:v3.20 | rust | 1.78.0-r1 | ALPINE-CVE-2026-33056 |
| Alpine:v3.21 | rust | 1.83.0-r1 | ALPINE-CVE-2026-33056 |
| Alpine:v3.22 | rust | 1.87.0-r1 | ALPINE-CVE-2026-33056 |
| Alpine:v3.23 | rust | 1.91.1-r1 | ALPINE-CVE-2026-33056 |
| Alpine:v3.24 | rust | 1.94.0-r1 | ALPINE-CVE-2026-33056 |
| Debian:12 | rust-tar | no fix listed | DEBIAN-CVE-2026-33056 |
| Debian:13 | rust-tar | no fix listed | DEBIAN-CVE-2026-33056 |
| Debian:14 | rust-tar | 0.4.45-1 | DEBIAN-CVE-2026-33056 |
| Debian:12 | rustc | no fix listed | DEBIAN-CVE-2026-33056 |
| Debian:13 | rustc | 1.85.1+dfsg1-1+deb13u1 | DEBIAN-CVE-2026-33056 |
| Debian:14 | rustc | 1.92.0+dfsg1-2 | DEBIAN-CVE-2026-33056 |
| Ubuntu:25.10 | rust-astral-tokio-tar | no fix listed | UBUNTU-CVE-2026-33056 |
| Ubuntu:26.04:LTS | rust-astral-tokio-tar | no fix listed | UBUNTU-CVE-2026-33056 |
| Ubuntu:26.10 | rust-astral-tokio-tar | no fix listed | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rust-async-tar | no fix listed | UBUNTU-CVE-2026-33056 |
| Ubuntu:25.10 | rust-async-tar | no fix listed | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rust-cargo-c | no fix listed | UBUNTU-CVE-2026-33056 |
| Ubuntu:25.10 | rust-cargo-c | 0.10.11-1ubuntu1.1 | USN-8139-1 |
| Ubuntu:25.10 | rust-cargo-c | 0.10.11-1ubuntu1.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rust-tar | 0.4.37-3ubuntu0.1 | USN-8138-1 |
| Ubuntu:22.04:LTS | rust-tar | 0.4.37-3ubuntu0.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rust-tar | 0.4.40-1ubuntu0.1 | USN-8138-1 |
| Ubuntu:24.04:LTS | rust-tar | 0.4.40-1ubuntu0.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:25.10 | rust-tar | 0.4.43-4ubuntu0.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:25.10 | rust-tar | 0.4.43-4ubuntu0.1 | USN-8138-1 |
| Ubuntu:22.04:LTS | rustc | 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc | 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc | 1.75.0+dfsg0ubuntu1-0ubuntu7.4 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc | 1.75.0+dfsg0ubuntu1-0ubuntu7.4 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.62 | 1.62.1+dfsg1-1ubuntu0.22.04.3 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.62 | 1.62.1+dfsg1-1ubuntu0.22.04.3 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.74 | 1.74.1+dfsg0ubuntu1-0ubuntu15 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.74 | 1.74.1+dfsg0ubuntu1-0ubuntu15 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.76 | 1.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.76 | 1.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.76 | 1.76.0+dfsg0ubuntu1-0ubuntu0.24.04.2 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.76 | 1.76.0+dfsg0ubuntu1-0ubuntu0.24.04.2 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.77 | 1.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.77 | 1.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.77 | 1.77.2+dfsg1ubuntu1-0ubuntu0.24.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.77 | 1.77.2+dfsg1ubuntu1-0ubuntu0.24.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.78 | 1.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.78 | 1.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.78 | 1.78.0+dfsg1ubuntu1-0ubuntu0.24.04.2 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.78 | 1.78.0+dfsg1ubuntu1-0ubuntu0.24.04.2 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.79 | 1.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.79 | 1.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.79 | 1.79.0+dfsg1ubuntu1-0ubuntu0.24.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.79 | 1.79.0+dfsg1ubuntu1-0ubuntu0.24.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.80 | 1.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.80 | 1.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.80 | 1.80.1+dfsg0ubuntu1-0ubuntu0.24.04.01 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.80 | 1.80.1+dfsg0ubuntu1-0ubuntu0.24.04.01 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.81 | 1.81.0+dfsg0ubuntu0-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.81 | 1.81.0+dfsg0ubuntu0-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.81 | 1.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.81 | 1.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.82 | 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.82 | 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.82 | 1.82.0+dfsg0ubuntu0-0ubuntu0.24.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.82 | 1.82.0+dfsg0ubuntu0-0ubuntu0.24.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.83 | 1.83.0+dfsg0ubuntu2~bpo2-0ubuntu2.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.83 | 1.83.0+dfsg0ubuntu2~bpo2-0ubuntu2.22.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.83 | 1.83.0+dfsg0ubuntu1~bpo2-0ubuntu0.24.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.83 | 1.83.0+dfsg0ubuntu1~bpo2-0ubuntu0.24.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.84 | 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.84 | 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.84 | 1.84.1+dfsg0ubuntu1~bpo2-0ubuntu2.24.04.1 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.84 | 1.84.1+dfsg0ubuntu1~bpo2-0ubuntu2.24.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.85 | 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu1.22.04.1 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.85 | 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu1.22.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.85 | 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu0.24.04.2 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.85 | 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu0.24.04.2 | UBUNTU-CVE-2026-33056 |
| Ubuntu:25.10 | rustc-1.85 | 1.85.1+dfsg0ubuntu2-0ubuntu1.25.04.1 | USN-8168-1 |
| Ubuntu:25.10 | rustc-1.85 | 1.85.1+dfsg0ubuntu2-0ubuntu1.25.04.1 | UBUNTU-CVE-2026-33056 |
| Ubuntu:25.10 | rustc-1.88 | 1.88.0+dfsg0ubuntu1-0ubuntu2 | USN-8168-1 |
| Ubuntu:25.10 | rustc-1.88 | 1.88.0+dfsg0ubuntu1-0ubuntu2 | UBUNTU-CVE-2026-33056 |
| Ubuntu:22.04:LTS | rustc-1.89 | 1.89.0+dfsg~24.04-0ubuntu0.22.04.2 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.89 | 1.89.0+dfsg~24.04-0ubuntu0.22.04.2 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.89 | 1.89.0+dfsg~24.04-0ubuntu0.24.04.2 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.89 | 1.89.0+dfsg~24.04-0ubuntu0.24.04.2 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.91 | 1.91.1+dfsg~22.04-0ubuntu0.22.04.3 | USN-8168-1 |
| Ubuntu:22.04:LTS | rustc-1.91 | 1.91.1+dfsg~22.04-0ubuntu0.22.04.3 | UBUNTU-CVE-2026-33056 |
| Ubuntu:24.04:LTS | rustc-1.91 | 1.91.1+dfsg~24.04-0ubuntu0.24.04.2 | USN-8168-1 |
| Ubuntu:24.04:LTS | rustc-1.91 | 1.91.1+dfsg~24.04-0ubuntu0.24.04.2 | UBUNTU-CVE-2026-33056 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| alexcrichton | tar-rs | < 0.4.45 |
Weakness: CWE-61 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N