---
id: RUSTSEC-2026-0113
aliases:
  - GHSA-xx64-wwv2-hcqq
title: '`unpack_in` can chmod arbitrary directories by following symlinks'
summary: '`unpack_in` can chmod arbitrary directories by following symlinks'
severity: none
vendor: astral-tokio-tar
product: astral-tokio-tar
ecosystem: rust
affected:
  - 'astral-tokio-tar >= 0.0.0-0, < 0.6.1'
patched:
  - astral-tokio-tar 0.6.1
published: '2026-04-27'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T18:00:09.237324844Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2026-0113'
references:
  - url: 'https://crates.io/crates/astral-tokio-tar'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2026-0113.html'
  - url: >-
      https://github.com/astral-sh/tokio-tar/commit/f1fa37043a6fe798dcd1fd4b3000d889ac35b183
tags:
  - osv
  - rust
ingestedAt: '2026-10-13T11:45:30.190Z'
---

## Overview

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.

## Affected packages

- `astral-tokio-tar >= 0.0.0-0, < 0.6.1`

## Remediation

Upgrade to a patched release:

- `astral-tokio-tar 0.6.1`
