Lack of data validation - Path Traversal In node-tar
Description
node-tar is a Tar for Node.js. The node-tar library (<= 7.5.2) fails to sanitize the linkpath of Link (hardlink) and SymbolicLink entries when preservePaths is false (the default secure behavior). This allows malicious archives to bypass the extraction root restriction, leading to Arbitrary File Overwrite via hardlinks and Symlink Poisoning via absolute symlink targets. This vulnerability is fixed in 7.5.3.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
debian 11 | 6.0.5+ds1+~cs11.3.9-1+deb11u3 | ||
npm | 7.5.3 | ||
debian 12 | 6.1.13+~cs7.0.5-1+deb12u1 | ||
debian 13 | 6.2.1+~cs7.0.8-1+deb13u1 | ||
debian 14 | 6.2.1+ds1+~cs6.1.13-6 | ||
rpm rhel9 | 0:2.26-7.el9 | ||
rpm rhel6 | - | - | |
rpm rhel10 | 0:2.26-7.el10 |
Aliases
1. 2. 3. 4. 5. 6. 7.
References
1. 2. 3.