`unpack_in` can chmod arbitrary directories by following symlinks
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.
- Products
- astral-tokio-tar
- Affected versions
- Not specified
- Fixed versions
- 0.6.1
- CVEs
- Not specified
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 08:43 UTC · Revision 1
Source evidence
`unpack_in` can chmod arbitrary directories by following symlinks
core-osv · Original sourcePublished 27 Apr 2026, 12:00 UTC
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.
osv:RUSTSEC-2026-0113
astral-tokio-tar
Fixed versions: 0.6.1
Complete source record
{
"id": "70313049d05ed228b090ecd1e3c218d481bfcb494723f6a31bae57625631855e",
"url": "https://osv.dev/vulnerability/RUSTSEC-2026-0113",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "`unpack_in` can chmod arbitrary directories by following symlinks",
"summary": "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.",
"evidence": "osv:RUSTSEC-2026-0113",
"products": [
{
"name": {
"value": "astral-tokio-tar",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.6.1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "RUSTSEC-2026-0113",
"aliases": [
"GHSA-xx64-wwv2-hcqq",
"RUSTSEC-2026-0113"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.6.1"
}
]
}
],
"package": {
"name": "astral-tokio-tar",
"purl": "pkg:cargo/astral-tokio-tar",
"ecosystem": "crates.io"
},
"database_specific": {
"cvss": null,
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0113.json",
"categories": [
"file-disclosure"
],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [],
"arch": [],
"functions": []
},
"affected_functions": null
}
}
],
"modified": "2026-10-12T18:00:09.237324844Z",
"provider": "osv",
"references": [
"https://crates.io/crates/astral-tokio-tar",
"https://rustsec.org/advisories/RUSTSEC-2026-0113.html",
"https://github.com/astral-sh/tokio-tar/commit/f1fa37043a6fe798dcd1fd4b3000d889ac35b183"
],
"provider_metadata": {
"license": "CC0-1.0"
}
},
"related_cves": [],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 306394,
"published_at": "2026-04-27T12:00:00+00:00"
}