Skip to content
OpenAdvisories
Medium · 5.9 Public exploit CVE-2026-44788 EUVD-2026-32013GHSA-6c8g-7p36-r338

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

Published May 26, 2026 · Updated May 27, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
adamhathcock sharpcompress <= 0.47.4 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
NuGet SharpCompress < 0.48.0 0.48.0 GHSA-6c8g-7p36-r338

References