Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.8
tar-rs 0.4.44 lets attackers alter folder permissions
published 15 days ago
Summary
The tar‑rs library used by Rust programs can change the permissions of any directory on the system when it extracts a specially crafted tar file. The problem is fixed in version 0.4.45, so update the library to that version or later to stop this behavior.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Docker Hardened Images:Alpine:3.23 | docker hardened images | rust | All versions |
Original advisory text
tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive…
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.
References
- https://scout.docker.com/v/DHI-pmm6-glfn-gfi4-ve5m Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-33056 Vendor Advisory
- https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph Vendor Advisory
- https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd... Patch
- https://security.alpinelinux.org/vuln/CVE-2026-33056 Vendor Advisory
- https://alas.aws.amazon.com/AL2/ALAS-2026-3246.html Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33056 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33055 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-0810 Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-1565.html Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-1566.html Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-1567.html Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-1568.html Vendor Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-33056 Vendor Advisory
- https://github.com/advisories/GHSA-j4xf-2g29-59ph Vendor Advisory
- https://rustsec.org/advisories/RUSTSEC-2026-0067.html Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-33056 Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-33056 Patch
- https://rustsec.org/advisories/RUSTSEC-2026-0067 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-33056 Vendor Advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-33056 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Timeline
Published11 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
DHI-pmm6-glfn-gfi4-ve5m · OSV
Track software like this
Free during beta