# CVE-2026-33056: tar-rs: unpack_in can chmod arbitrary directories by following symlinks

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-19T12:00:00.000Z
- Modified: 2026-09-10T03:50:39.751Z
- Also known as: GHSA-j4xf-2g29-59ph, RUSTSEC-2026-0067
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- alexcrichton tar-rs: < 0.4.45
- tar (crates.io): before 0.4.45; from 0.0.0-0 before 0.4.45
- tar_project tar: before 0.4.45

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 Medium `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`
- RustSec Advisory Database: CVSS:4.0 `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33056> (advisory)
- <https://github.com/alexcrichton/tar-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0067.html> (advisory, web)
- <https://crates.io/crates/tar> (package)

## Sources

- CVE List: [CVE-2026-33056](https://www.cve.org/CVERecord?id=CVE-2026-33056), CVE Terms of Use, modified 2026-03-20
- GitHub Advisory Database: [GHSA-j4xf-2g29-59ph](https://github.com/advisories/GHSA-j4xf-2g29-59ph), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0067](https://rustsec.org/advisories/RUSTSEC-2026-0067.html), CC0-1.0, modified 2026-03-23
- NVD: [CVE-2026-33056](https://nvd.nist.gov/vuln/detail/CVE-2026-33056), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33056 · Whole record: https://cve.day/CVE-2026-33056.json · Rebuilt by cve.day 2026-11-25T22:59:16.292Z
