Rust advisories / astral-tokio-tar
Vulnerability LowRUSTSEC-2026-0113 · astral-tokio-tar
RUSTSEC-2026-0113: `unpack_in` can chmod arbitrary directories by following symlinks
Short answerA security vulnerability in the astral-tokio-tar crate: `unpack_in` can chmod arbitrary directories by following symlinks. GitHub rates it Low. Fixed in 0.6.1: update to a fixed version.
| Crate | astral-tokio-tar |
|---|---|
| Type | Vulnerability (file-disclosure) |
| Affected versions | Before 0.6.1. |
| Fixed in | 0.6.1 |
| Severity | Low (GitHub rating) |
| Published | 2026-04-27 |
| Last changed | 2026-10-12 |
| Also known as | GHSA-xx64-wwv2-hcqq |
What to do
- See which version you have:
cargo tree -i astral-tokio-tar(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p astral-tokio-tar. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleastral-tokio-tar = "0.6.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
In versions 0.6.0 and earlier of astral-tokio-tar, the unpack_in API could inadvertently modify the permissions of external (i.e. non-archive) directories outside of the archive. An attacker could use this to contrite a tar archive that maliciously changes directory permissions outside of its intended hierarchy. This flaw only affects directories; individual file permissions cannot be modified via it.
See GHSA-j4xf-2g29-59ph for the equivalent flaw in the tar crate.
References
- Package: crates.io/crates/astral-tokio-tar
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0113.html
- Web: github.com/astral-sh/tokio-tar/commit/f1fa37043a6fe798dcd1fd4b3000d889ac35b183
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for astral-tokio-tar
- Vulnerability HighRUSTSEC-2025-0110 · 2025-10-21astral-tokio-tar Vulnerable to PAX Header Desynchronization
- VulnerabilityRUSTSEC-2026-0066 · 2026-03-17Insufficient validation of PAX extensions during extraction
- VulnerabilityRUSTSEC-2026-0112 · 2026-04-27PAX Header Desynchronization in astral-tokio-tar
- VulnerabilityRUSTSEC-2026-0145 · 2026-05-18PAX Header Desynchronization in astral-tokio-tar
- VulnerabilityGHSA-3wgq-wrwc-vqmv · 2025-09-23astral-tokio-tar has a path traversal in tar extraction
Up next
Same crateastral-tokio-tar: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?