Path traversal in sharpcompress - #VU165939

 

Path traversal in sharpcompress - #VU165939

Published: November 11, 2026


Vulnerability identifier: #VU165939
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

sharpcompress

Remediation

Install security update from vendor's website.

sharpcompress - update to 0.50.4

External References

Related Security Bulletins