tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()
tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-70622
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 16:52 UTC · Revision 1
Source evidence
tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()
core-osv · Original sourcePublished 10 Aug 2026, 17:35 UTC
tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.
osv:CVE-2026-70622
Complete source record
{
"id": "ddb890dbcf2e4d5d9c719285784141e3dae9c402788a29ab8e517dc570b6b9b8",
"url": "https://osv.dev/vulnerability/CVE-2026-70622",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()",
"summary": "tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.",
"evidence": "osv:CVE-2026-70622",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-70622",
"aliases": [
"CVE-2026-70622"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/composefs/tar-rs",
"type": "GIT",
"events": [
{
"introduced": "322ee2ea81a10b063b808b244cab33cd0b45ad1f"
},
{
"last_affected": "fc459c149f83bf4daceaa52e17d351989002e1a9"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.4.11"
},
{
"last_affected": "0.4.46"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"0.4.46",
"0.4.45",
"0.4.44",
"0.4.43",
"0.4.42",
"0.4.41",
"0.4.40",
"0.4.39",
"0.4.38",
"0.4.37",
"0.4.36",
"0.4.35",
"0.4.34",
"0.4.33",
"0.4.32",
"0.4.31",
"0.4.30",
"0.4.29",
"0.4.28",
"0.4.27",
"0.4.26",
"0.4.25",
"0.4.24",
"0.4.23",
"0.4.22",
"0.4.21",
"0.4.20",
"0.4.19",
"0.4.18",
"0.4.17",
"0.4.16",
"0.4.15",
"0.4.14",
"0.4.13",
"0.4.12",
"0.4.11"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-70622.json"
}
}
],
"modified": "2026-10-28T02:30:37.595862384Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70622.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-70622",
"https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all",
"https://github.com/composefs/tar-rs",
"https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726"
],
"provider_metadata": {
"cwe_ids": [
"CWE-59"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70622.json"
}
},
"related_cves": [
{
"value": "CVE-2026-70622",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504949,
"published_at": "2026-08-10T17:35:23.683+00:00"
}