CVE-2026-70622: Improper Link Resolution Before File Access ('Link Following') in composefs tar-rs
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.
AI Analysis
Technical Summary
The vulnerability in tar-rs (CVE-2026-70622) involves improper link resolution before file access in the Builder::append_dir_all() function. Specifically, when archiving directories, the function follows symbolic links without ensuring that the resolved paths stay within the source root directory. This symlink escape vulnerability allows attackers who can control directory contents to cause files outside the intended directory to be included in the archive as regular files, leading to unauthorized file disclosure. The affected versions are from 0.4.11 through 0.4.46 inclusive. The CVSS 4.0 score is 7.1 (high severity), indicating network attack vector, low attack complexity, no privileges required beyond low, no user interaction, and high confidentiality impact. No vendor advisory or patch information is currently available.
Potential Impact
An attacker able to control directory contents that are archived by a privileged process can cause files outside the intended source directory to be included in the archive. This results in unauthorized disclosure of files outside the source root, potentially exposing sensitive information. The vulnerability does not require user interaction and can be exploited remotely over the network with low complexity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid archiving untrusted directories with privileged processes using affected versions of tar-rs. Monitor vendor communications for updates on patches or official mitigations.
CVE-2026-70622: Improper Link Resolution Before File Access ('Link Following') in composefs tar-rs
Description
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.
CVSS v4.0
Score 7.1high
Affected software
composefs
tar-rs
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in tar-rs (CVE-2026-70622) involves improper link resolution before file access in the Builder::append_dir_all() function. Specifically, when archiving directories, the function follows symbolic links without ensuring that the resolved paths stay within the source root directory. This symlink escape vulnerability allows attackers who can control directory contents to cause files outside the intended directory to be included in the archive as regular files, leading to unauthorized file disclosure. The affected versions are from 0.4.11 through 0.4.46 inclusive. The CVSS 4.0 score is 7.1 (high severity), indicating network attack vector, low attack complexity, no privileges required beyond low, no user interaction, and high confidentiality impact. No vendor advisory or patch information is currently available.
Potential Impact
An attacker able to control directory contents that are archived by a privileged process can cause files outside the intended source directory to be included in the archive. This results in unauthorized disclosure of files outside the source root, potentially exposing sensitive information. The vulnerability does not require user interaction and can be exploited remotely over the network with low complexity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid archiving untrusted directories with privileged processes using affected versions of tar-rs. Monitor vendor communications for updates on patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-04T20:17:18.296Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a7a10ecbf8831d53945abfd
Added to database: 08/10/2026, 17:57:00 UTC
Last enriched: 08/10/2026, 18:11:19 UTC
Last updated: 09/24/2026, 01:47:44 UTC
Views: 60
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.