rust-astral-tokio-tar — security advisory
astral-tokio-tar is a tar archive reading/writing library for async Rust. In versions 0.5.3 and earlier of astral-tokio-tar, tar archives may extract outside of their intended destination directory when using the Entry::unpack_in_raw API. Additionally, the Entry::allow_external_symlinks control (which defaults to true) could be bypassed via a pair of symlinks that individually point within the destination but combine to point outside of it. These behaviors could be used individually or combined to bypass the intended security control of limiting extraction to the given directory. This in turn would allow an attacker with a malicious tar archive to perform an arbitrary file write and potentially pivot into code execution. This issue has been patched in version 0.5.4. There is no workaround other than upgrading.
- Products
- rust-astral-tokio-tar
- Affected versions
- 0.5.2-2, 0.5.5-1, 0.5.6-1, 0.5.6-2, 0.6.0-1, 0.6.1-1, 0.6.2-1, 0.6.4-1
- Fixed versions
- 0.5.5-1
- CVEs
- CVE-2025-59825
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 06:31 UTC · Revision 1
Source evidence
astral-tokio-tar is a tar archive reading/writing library for async Rust. In versions 0.5.3 and earlier of astral-tokio-tar, tar archives may extract outside of their intended destination directory when using the Entry::unpack_in_raw API. Additionally, the Entry::allow_external_symlinks control (which defaults to true) could be bypassed via a pair of symlinks that individually point within the destination but combine to point outside of it. These behaviors could be used individually or combined to bypass the intended security control of limiting extraction to the given directory. This in turn would allow an attacker with a malicious tar archive to perform an arbitrary file write and potentially pivot into code execution. This issue has been patched in version 0.5.4. There is no workaround other than upgrading.
osv:DEBIAN-CVE-2025-59825
rust-astral-tokio-tar
Fixed versions: Not specified
rust-astral-tokio-tar
Fixed versions: 0.5.5-1
Complete source record
{
"id": "d663e51763f2f493ec6cbbcc8d4b2383fe4f642ca32b12966957464314160129",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-59825",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2025-59825",
"summary": "astral-tokio-tar is a tar archive reading/writing library for async Rust. In versions 0.5.3 and earlier of astral-tokio-tar, tar archives may extract outside of their intended destination directory when using the Entry::unpack_in_raw API. Additionally, the Entry::allow_external_symlinks control (which defaults to true) could be bypassed via a pair of symlinks that individually point within the destination but combine to point outside of it. These behaviors could be used individually or combined to bypass the intended security control of limiting extraction to the given directory. This in turn would allow an attacker with a malicious tar archive to perform an arbitrary file write and potentially pivot into code execution. This issue has been patched in version 0.5.4. There is no workaround other than upgrading.",
"evidence": "osv:DEBIAN-CVE-2025-59825",
"products": [
{
"name": {
"value": "rust-astral-tokio-tar",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.5.2-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.5.5-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.5.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.5.6-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.6.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.6.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.6.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.6.4-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-astral-tokio-tar",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.5.5-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "0.5.2-2",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2025-59825",
"aliases": [
"DEBIAN-CVE-2025-59825"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-astral-tokio-tar",
"purl": "pkg:deb/debian/rust-astral-tokio-tar?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"0.5.2-2",
"0.5.5-1",
"0.5.6-1",
"0.5.6-2",
"0.6.0-1",
"0.6.1-1",
"0.6.2-1",
"0.6.4-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-59825.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.5.5-1"
}
]
}
],
"package": {
"name": "rust-astral-tokio-tar",
"purl": "pkg:deb/debian/rust-astral-tokio-tar?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"0.5.2-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-59825.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-12T09:47:39.241936268Z",
"provider": "osv",
"upstream": [
"CVE-2025-59825"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2025-59825"
]
},
"related_cves": [
{
"value": "CVE-2025-59825",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 299678,
"published_at": "2025-09-23T20:15:33.13+00:00"
}