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.

Severity (CVSS 4.0)5.1Medium
Exploit odds (30 days)0.4%top 66.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.24chromium-rust1.94.0-r1ALPINE-CVE-2026-33056
Alpine:v3.20rust1.78.0-r1ALPINE-CVE-2026-33056
Alpine:v3.21rust1.83.0-r1ALPINE-CVE-2026-33056
Alpine:v3.22rust1.87.0-r1ALPINE-CVE-2026-33056
Alpine:v3.23rust1.91.1-r1ALPINE-CVE-2026-33056
Alpine:v3.24rust1.94.0-r1ALPINE-CVE-2026-33056
Debian:12rust-tarno fix listedDEBIAN-CVE-2026-33056
Debian:13rust-tarno fix listedDEBIAN-CVE-2026-33056
Debian:14rust-tar0.4.45-1DEBIAN-CVE-2026-33056
Debian:12rustcno fix listedDEBIAN-CVE-2026-33056
Debian:13rustc1.85.1+dfsg1-1+deb13u1DEBIAN-CVE-2026-33056
Debian:14rustc1.92.0+dfsg1-2DEBIAN-CVE-2026-33056
Ubuntu:25.10rust-astral-tokio-tarno fix listedUBUNTU-CVE-2026-33056
Ubuntu:26.04:LTSrust-astral-tokio-tarno fix listedUBUNTU-CVE-2026-33056
Ubuntu:26.10rust-astral-tokio-tarno fix listedUBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrust-async-tarno fix listedUBUNTU-CVE-2026-33056
Ubuntu:25.10rust-async-tarno fix listedUBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrust-cargo-cno fix listedUBUNTU-CVE-2026-33056
Ubuntu:25.10rust-cargo-c0.10.11-1ubuntu1.1USN-8139-1
Ubuntu:25.10rust-cargo-c0.10.11-1ubuntu1.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrust-tar0.4.37-3ubuntu0.1USN-8138-1
Ubuntu:22.04:LTSrust-tar0.4.37-3ubuntu0.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrust-tar0.4.40-1ubuntu0.1USN-8138-1
Ubuntu:24.04:LTSrust-tar0.4.40-1ubuntu0.1UBUNTU-CVE-2026-33056
Ubuntu:25.10rust-tar0.4.43-4ubuntu0.1UBUNTU-CVE-2026-33056
Ubuntu:25.10rust-tar0.4.43-4ubuntu0.1USN-8138-1
Ubuntu:22.04:LTSrustc1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1USN-8168-1
Ubuntu:24.04:LTSrustc1.75.0+dfsg0ubuntu1-0ubuntu7.4UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc1.75.0+dfsg0ubuntu1-0ubuntu7.4USN-8168-1
Ubuntu:22.04:LTSrustc-1.621.62.1+dfsg1-1ubuntu0.22.04.3UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.621.62.1+dfsg1-1ubuntu0.22.04.3USN-8168-1
Ubuntu:24.04:LTSrustc-1.741.74.1+dfsg0ubuntu1-0ubuntu15USN-8168-1
Ubuntu:24.04:LTSrustc-1.741.74.1+dfsg0ubuntu1-0ubuntu15UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.761.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.761.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.761.76.0+dfsg0ubuntu1-0ubuntu0.24.04.2USN-8168-1
Ubuntu:24.04:LTSrustc-1.761.76.0+dfsg0ubuntu1-0ubuntu0.24.04.2UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.771.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.771.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.771.77.2+dfsg1ubuntu1-0ubuntu0.24.04.1USN-8168-1
Ubuntu:24.04:LTSrustc-1.771.77.2+dfsg1ubuntu1-0ubuntu0.24.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.781.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.781.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.781.78.0+dfsg1ubuntu1-0ubuntu0.24.04.2USN-8168-1
Ubuntu:24.04:LTSrustc-1.781.78.0+dfsg1ubuntu1-0ubuntu0.24.04.2UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.791.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.791.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.791.79.0+dfsg1ubuntu1-0ubuntu0.24.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.791.79.0+dfsg1ubuntu1-0ubuntu0.24.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.801.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.801.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1USN-8168-1
Ubuntu:24.04:LTSrustc-1.801.80.1+dfsg0ubuntu1-0ubuntu0.24.04.01UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.801.80.1+dfsg0ubuntu1-0ubuntu0.24.04.01USN-8168-1
Ubuntu:22.04:LTSrustc-1.811.81.0+dfsg0ubuntu0-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.811.81.0+dfsg0ubuntu0-0ubuntu0.22.04.1USN-8168-1
Ubuntu:24.04:LTSrustc-1.811.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1USN-8168-1
Ubuntu:24.04:LTSrustc-1.811.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.821.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.821.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.821.82.0+dfsg0ubuntu0-0ubuntu0.24.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.821.82.0+dfsg0ubuntu0-0ubuntu0.24.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.831.83.0+dfsg0ubuntu2~bpo2-0ubuntu2.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.831.83.0+dfsg0ubuntu2~bpo2-0ubuntu2.22.04.1USN-8168-1
Ubuntu:24.04:LTSrustc-1.831.83.0+dfsg0ubuntu1~bpo2-0ubuntu0.24.04.1USN-8168-1
Ubuntu:24.04:LTSrustc-1.831.83.0+dfsg0ubuntu1~bpo2-0ubuntu0.24.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.841.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.841.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.841.84.1+dfsg0ubuntu1~bpo2-0ubuntu2.24.04.1USN-8168-1
Ubuntu:24.04:LTSrustc-1.841.84.1+dfsg0ubuntu1~bpo2-0ubuntu2.24.04.1UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.851.85.1+dfsg0ubuntu2~bpo0-0ubuntu1.22.04.1USN-8168-1
Ubuntu:22.04:LTSrustc-1.851.85.1+dfsg0ubuntu2~bpo0-0ubuntu1.22.04.1UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.851.85.1+dfsg0ubuntu2~bpo0-0ubuntu0.24.04.2USN-8168-1
Ubuntu:24.04:LTSrustc-1.851.85.1+dfsg0ubuntu2~bpo0-0ubuntu0.24.04.2UBUNTU-CVE-2026-33056
Ubuntu:25.10rustc-1.851.85.1+dfsg0ubuntu2-0ubuntu1.25.04.1USN-8168-1
Ubuntu:25.10rustc-1.851.85.1+dfsg0ubuntu2-0ubuntu1.25.04.1UBUNTU-CVE-2026-33056
Ubuntu:25.10rustc-1.881.88.0+dfsg0ubuntu1-0ubuntu2USN-8168-1
Ubuntu:25.10rustc-1.881.88.0+dfsg0ubuntu1-0ubuntu2UBUNTU-CVE-2026-33056
Ubuntu:22.04:LTSrustc-1.891.89.0+dfsg~24.04-0ubuntu0.22.04.2USN-8168-1
Ubuntu:22.04:LTSrustc-1.891.89.0+dfsg~24.04-0ubuntu0.22.04.2UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.891.89.0+dfsg~24.04-0ubuntu0.24.04.2UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.891.89.0+dfsg~24.04-0ubuntu0.24.04.2USN-8168-1
Ubuntu:22.04:LTSrustc-1.911.91.1+dfsg~22.04-0ubuntu0.22.04.3USN-8168-1
Ubuntu:22.04:LTSrustc-1.911.91.1+dfsg~22.04-0ubuntu0.22.04.3UBUNTU-CVE-2026-33056
Ubuntu:24.04:LTSrustc-1.911.91.1+dfsg~24.04-0ubuntu0.24.04.2USN-8168-1
Ubuntu:24.04:LTSrustc-1.911.91.1+dfsg~24.04-0ubuntu0.24.04.2UBUNTU-CVE-2026-33056

Affected products (as reported)

VendorProductVersions
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

References