Path traversal in sharpcompress - CVE-2026-44788

 

Path traversal in sharpcompress - CVE-2026-44788

Published: May 11, 2026


Vulnerability identifier: #VU131004
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: CVE-2026-44788
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 create directories outside the intended extraction root.

The vulnerability exists due to path traversal in IArchive.WriteToDirectory() when extracting a crafted archive. A remote attacker can supply a specially crafted archive with traversal or absolute-path directory entries to create directories outside the intended extraction root.

User interaction is required to process the crafted archive.


How to mitigate CVE-2026-44788

Install security update from vendor's website.

Sources