Path traversal in sharpcompress - #VU165939
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote attacker to create or overwrite files outside the extraction root with the victim process's write permissions.
The vulnerability exists due to insufficient symlink target validation and reliance on path-prefix checks in SharpCompress TAR extraction when a caller-provided SymbolicLinkHandler creates symlinks from archive entries. A remote attacker can supply a crafted TAR containing a symlink pointing outside the extraction root followed by a file entry beneath that symlink to redirect writes outside the intended directory.