CVE-2026-44788

Medium

Description

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.

SeverityMedium
CVSS5.9
Exploit probability—
ProductAdamhathcock Sharpcompress
PublishedMay 26, 2026
First seenMay 26, 2026

How to fix

Update
  • SharpCompress0.48.0 or later

Affected products

ProductAffected versionsFixed in
adamhathcock sharpcompressv ≤ 0.47.4—
SharpCompressNuGetv < 0.48.00.48.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.