# CVE-2026-33056: tar-rs: unpack\_in can chmod arbitrary directories by following symlinks

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-20 · Modified: 2026-03-20
- Aliases: ALPINE-CVE-2026-33056, UBUNTU-CVE-2026-33056, USN-8138-1, USN-8138-2, USN-8139-1, USN-8168-1, DEBIAN-CVE-2026-33056, CGA-2hf9-9gqq-84vj, CGA-2xm4-qqf6-x2h5, CGA-37vv-2rcx-h8r8, CGA-48pv-783q-42m3, CGA-5pvm-5c4g-3h4j, CGA-657j-c3q6-crcx, CGA-74fx-j6wg-999j, CGA-7wv6-v6wf-x9rx, CGA-9j94-mj2g-f4px, CGA-9p8c-5pqp-h3j4, CGA-c4f4-2vfh-457g, CGA-cqhg-4g79-rvh6, CGA-f2w3-6qg9-w2vw, CGA-g573-g549-8m43, CGA-gr5m-j97x-c5pv, CGA-grq3-9g8p-3cg4, CGA-h6rc-488j-jqrg, CGA-jcpg-fww3-g964, CGA-ph64-2mq9-c453, CGA-qjqj-5x49-mfgq, CGA-v3wc-9ccg-h6h5, CGA-v4p5-vw9p-8g9p, CGA-v734-v6p7-h29v, CGA-v9mv-fgp5-9678, CGA-wcwv-3mjj-m9fh, CGA-wm3x-xgfw-cm72, CGA-wmjc-hp9q-53jc, CGA-xmvg-3c5r-mrvf, CGA-2rwf-c77q-fqh4, CGA-2w5c-2fhc-7fxg, CGA-49px-6cv9-mwv9, CGA-69q5-6wwv-h374, CGA-j947-2rgh-h6v9, GHSA-j4xf-2g29-59ph, RUSTSEC-2026-0067, CGA-qmr6-jxrg-777h, CGA-rh47-q38p-qgrc, CGA-v48m-847g-w32q, USN-8168-2
- Record: https://cvemate.com/vulnerability/CVE-2026-33056 · JSON: https://cvemate.com/vulnerability/CVE-2026-33056/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- EPSS: 0.392%, percentile 35.517%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 54)

- alexcrichton tar-rs: \< 0.4.45
- alpine chromium-rust (Alpine Linux): \< 1.94.0-r1
- alpine rust (Alpine Linux): \< 1.78.0-r1 \| \< 1.83.0-r1 \| \< 1.87.0-r1 \| \< 1.91.1-r1 \| \< 1.94.0-r1
- chainguard bootc-binary (Chainguard): \< 1.10.0-r3
- chainguard buck2 (Chainguard): \< 20260315-r4
- chainguard cargo-c (Chainguard): \< 0.10.21-r3
- chainguard deno (Chainguard): \< 2.7.8-r0
- chainguard fnm (Chainguard): \< 1.39.0-r2
- chainguard mise (Chainguard): \< 2026.3.17-r0
- chainguard pixi (Chainguard): \< 0.66.0-r3
- chainguard qdrant (Chainguard): \< 1.17.0-r7
- chainguard rustup (Chainguard): \< 1.29.0-r1
- chainguard rye (Chainguard): \< 0.44.0-r7
- chainguard sccache (Chainguard): \< 0.14.0-r3
- chainguard typst (Chainguard): \< 0.14.2-r2
- chainguard wasm-pack (Chainguard): \< 0.14.0-r4
- chainguard wasmcloud (Chainguard): \< 2.0.4-r0
- chainguard zizmor (Chainguard): \< 1.23.1-r4
- wolfi buck2 (Wolfi): \< 20260315-r4
- wolfi cargo-c (Wolfi): \< 0.10.21-r3

## References

- <https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph>
- <https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446>
- <https://security.alpinelinux.org/vuln/CVE-2026-33056>
- <https://ubuntu.com/security/CVE-2026-33056>
- <https://www.cve.org/CVERecord?id=CVE-2026-33056>
- <https://ubuntu.com/security/notices/USN-8139-1>
- <https://ubuntu.com/security/notices/USN-8138-1>
- <https://ubuntu.com/security/notices/USN-8168-1>
- <https://ubuntu.com/security/notices/USN-8138-2>
- <https://security-tracker.debian.org/tracker/CVE-2026-33056>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33056.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33056>
- <https://github.com/alexcrichton/tar-rs>
- <https://rustsec.org/advisories/RUSTSEC-2026-0067.html>
- <https://crates.io/crates/tar>
- <https://ubuntu.com/security/notices/USN-8168-2>

---

Data as of 2026-12-05T08:24:33.834Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
