Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. astral-tokio-tar
  4. ›
  5. GHSA-xx64-wwv2-hcqq

GHSA-xx64-wwv2-hcqq: astral-tokio-tar: `unpack_in` can chmod arbitrary directories by following symlinks

May 6, 2026

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

  • github.com/advisories/GHSA-xx64-wwv2-hcqq
  • github.com/astral-sh/tokio-tar
  • github.com/astral-sh/tokio-tar/security/advisories/GHSA-xx64-wwv2-hcqq
  • rustsec.org/advisories/RUSTSEC-2026-0113.html

Code Behaviors & Features

Detect and mitigate GHSA-xx64-wwv2-hcqq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.1

Fixed versions

  • 0.6.1

Solution

Upgrade to version 0.6.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-61: UNIX Symbolic Link (Symlink) Following

Source file

cargo/astral-tokio-tar/GHSA-xx64-wwv2-hcqq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:23 +0000.