Path traversal in sharpcompress - #VU131005

 

Path traversal in sharpcompress - #VU131005

Published: May 11, 2026


Vulnerability identifier: #VU131005
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: adamhathcock
Affected software:
sharpcompress

Detailed vulnerability description

The vulnerability allows a remote attacker to write arbitrary files outside the intended extraction root.

The vulnerability exists due to improper neutralization of symlink targets in TAR archive extraction when processing a crafted TAR archive with a caller-supplied SymbolicLinkHandler. A remote attacker can include a symlink entry and a subsequent file entry in a crafted TAR archive to write arbitrary files outside the intended extraction root.

This issue affects TAR archives only when the caller provides a SymbolicLinkHandler, and user interaction is required to process the crafted archive.


Remediation

Install security update from vendor's website.

Sources