ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-33056

Details

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

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSrustc
All versions, no fix listed
Ubuntu:Pro:16.04:LTScargo
All versions, no fix listed
Ubuntu:Pro:16.04:LTSrustc
All versions, no fix listed
Ubuntu:Pro:18.04:LTScargo
All versions, no fix listed
Ubuntu:Pro:18.04:LTSrustc
All versions, no fix listed
Ubuntu:Pro:20.04:LTScargo
All versions, no fix listed
Ubuntu:Pro:20.04:LTSrust-tar
All versions, no fix listed
Ubuntu:Pro:20.04:LTSrustc
All versions, no fix listed
Ubuntu:Pro:20.04:LTSrustc-1.76
All versions, no fix listed
Ubuntu:Pro:20.04:LTSrustc-1.77
All versions, no fix listed
Ubuntu:Pro:20.04:LTSrustc-1.78
All versions, no fix listed
Ubuntu:Pro:20.04:LTSrustc-1.79
All versions, no fix listed
Ubuntu:Pro:20.04:LTSrustc-1.80
All versions, no fix listed
Ubuntu:22.04:LTSrust-tar
All versions before 0.4.37-3ubuntu0.1 (fixed in 0.4.37-3ubuntu0.1)
Ubuntu:22.04:LTSrustc
All versions before 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 (fixed in 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.62
All versions before 1.62.1+dfsg1-1ubuntu0.22.04.3 (fixed in 1.62.1+dfsg1-1ubuntu0.22.04.3)
Ubuntu:22.04:LTSrustc-1.76
All versions before 1.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 (fixed in 1.76.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.77
All versions before 1.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 (fixed in 1.77.2+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.78
All versions before 1.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 (fixed in 1.78.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.79
All versions before 1.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1 (fixed in 1.79.0+dfsg1ubuntu1~bpo0-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.80
All versions before 1.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 (fixed in 1.80.1+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.81
All versions before 1.81.0+dfsg0ubuntu0-0ubuntu0.22.04.1 (fixed in 1.81.0+dfsg0ubuntu0-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.82
All versions before 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1 (fixed in 1.82.0+dfsg0ubuntu0~jammy-0ubuntu0.22.04.1)
Ubuntu:22.04:LTSrustc-1.83
All versions before 1.83.0+dfsg0ubuntu2~bpo2-0ubuntu2.22.04.1 (fixed in 1.83.0+dfsg0ubuntu2~bpo2-0ubuntu2.22.04.1)
Ubuntu:22.04:LTSrustc-1.84
All versions before 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1 (fixed in 1.84.1+dfsg0ubuntu1~bpo10-0ubuntu4.22.04.1)
Ubuntu:22.04:LTSrustc-1.85
All versions before 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu1.22.04.1 (fixed in 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu1.22.04.1)
Ubuntu:22.04:LTSrustc-1.89
All versions before 1.89.0+dfsg~24.04-0ubuntu0.22.04.2 (fixed in 1.89.0+dfsg~24.04-0ubuntu0.22.04.2)
Ubuntu:22.04:LTSrustc-1.91
All versions before 1.91.1+dfsg~22.04-0ubuntu0.22.04.3 (fixed in 1.91.1+dfsg~22.04-0ubuntu0.22.04.3)
Ubuntu:Pro:22.04:LTScargo
All versions, no fix listed
Ubuntu:24.04:LTSrust-async-tar
All versions, no fix listed
Ubuntu:24.04:LTSrust-cargo-c
All versions, no fix listed
Ubuntu:24.04:LTSrust-tar
All versions before 0.4.40-1ubuntu0.1 (fixed in 0.4.40-1ubuntu0.1)
Ubuntu:24.04:LTSrustc
All versions before 1.75.0+dfsg0ubuntu1-0ubuntu7.4 (fixed in 1.75.0+dfsg0ubuntu1-0ubuntu7.4)
Ubuntu:24.04:LTSrustc-1.74
All versions before 1.74.1+dfsg0ubuntu1-0ubuntu15 (fixed in 1.74.1+dfsg0ubuntu1-0ubuntu15)
Ubuntu:24.04:LTSrustc-1.76
All versions before 1.76.0+dfsg0ubuntu1-0ubuntu0.24.04.2 (fixed in 1.76.0+dfsg0ubuntu1-0ubuntu0.24.04.2)
Ubuntu:24.04:LTSrustc-1.77
All versions before 1.77.2+dfsg1ubuntu1-0ubuntu0.24.04.1 (fixed in 1.77.2+dfsg1ubuntu1-0ubuntu0.24.04.1)
Ubuntu:24.04:LTSrustc-1.78
All versions before 1.78.0+dfsg1ubuntu1-0ubuntu0.24.04.2 (fixed in 1.78.0+dfsg1ubuntu1-0ubuntu0.24.04.2)
Ubuntu:24.04:LTSrustc-1.79
All versions before 1.79.0+dfsg1ubuntu1-0ubuntu0.24.04.1 (fixed in 1.79.0+dfsg1ubuntu1-0ubuntu0.24.04.1)
Ubuntu:24.04:LTSrustc-1.80
All versions before 1.80.1+dfsg0ubuntu1-0ubuntu0.24.04.01 (fixed in 1.80.1+dfsg0ubuntu1-0ubuntu0.24.04.01)
Ubuntu:24.04:LTSrustc-1.81
All versions before 1.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1 (fixed in 1.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1)
Ubuntu:24.04:LTSrustc-1.82
All versions before 1.82.0+dfsg0ubuntu0-0ubuntu0.24.04.1 (fixed in 1.82.0+dfsg0ubuntu0-0ubuntu0.24.04.1)
Ubuntu:24.04:LTSrustc-1.83
All versions before 1.83.0+dfsg0ubuntu1~bpo2-0ubuntu0.24.04.1 (fixed in 1.83.0+dfsg0ubuntu1~bpo2-0ubuntu0.24.04.1)
Ubuntu:24.04:LTSrustc-1.84
All versions before 1.84.1+dfsg0ubuntu1~bpo2-0ubuntu2.24.04.1 (fixed in 1.84.1+dfsg0ubuntu1~bpo2-0ubuntu2.24.04.1)
Ubuntu:24.04:LTSrustc-1.85
All versions before 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu0.24.04.2 (fixed in 1.85.1+dfsg0ubuntu2~bpo0-0ubuntu0.24.04.2)
Ubuntu:24.04:LTSrustc-1.89
All versions before 1.89.0+dfsg~24.04-0ubuntu0.24.04.2 (fixed in 1.89.0+dfsg~24.04-0ubuntu0.24.04.2)
Ubuntu:24.04:LTSrustc-1.91
All versions before 1.91.1+dfsg~24.04-0ubuntu0.24.04.2 (fixed in 1.91.1+dfsg~24.04-0ubuntu0.24.04.2)
Ubuntu:25.10rust-astral-tokio-tar
All versions, no fix listed
Ubuntu:25.10rust-async-tar
All versions, no fix listed
Ubuntu:25.10rust-cargo-c
All versions before 0.10.11-1ubuntu1.1 (fixed in 0.10.11-1ubuntu1.1)
Ubuntu:25.10rust-tar
All versions before 0.4.43-4ubuntu0.1 (fixed in 0.4.43-4ubuntu0.1)
Ubuntu:25.10rustc-1.85
All versions before 1.85.1+dfsg0ubuntu2-0ubuntu1.25.04.1 (fixed in 1.85.1+dfsg0ubuntu2-0ubuntu1.25.04.1)
Ubuntu:25.10rustc-1.88
All versions before 1.88.0+dfsg0ubuntu1-0ubuntu2 (fixed in 1.88.0+dfsg0ubuntu1-0ubuntu2)
Ubuntu:26.10rust-astral-tokio-tar
All versions, no fix listed
Ubuntu:26.04:LTSrust-astral-tokio-tar
All versions, no fix listed

References