Vulnerability · Published May 26, 2026 · Assigned by GitHub_M

CVE-2026-44788SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant)

Medium 5.9

In plain English

A medium-severity path traversal in sharpcompress from adamhathcock. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.3%top 75.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
NuGetsharpcompress0.48.0GHSA-6c8g-7p36-r338

Affected products (as reported)

VendorProductVersions
adamhathcock sharpcompress <= 0.47.4

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L

References