NetSight
medium5.9

CVE-2026-44788

SharpCompress has directory traversal via directory entries in WriteToDirectory (zip slip variant)

Impact

SharpCompress is a fully managed C# library to deal with many compression types and formats. In 0.47.4 and earlier, a path traversal vulnerability in IArchive.WriteToDirectory() allows a malicious archive to create directories outside the intended extraction root. For TAR archives, this can be escalated to arbitrary file writes by chaining with a symlink entry, giving a full write primitive on the target filesystem subject to the permissions of the running process.

Affected packages

EcosystemPackageAffectedFixed in
nugetSharpCompress< 0.48.00.48.0

Affected products

VendorProductAffected versions
AdamhathcockSharpcompress
through 0.47.4

Weakness classification

References