Skip to main content
← All vulnerabilities
CVE-2026-44788GHSA-6C8G-7P36-R338

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.48.0
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • adamhathcock sharpcompress

    through 0.47.4

  • SharpCompressNuGet

    fixed in 0.48.0

References 2

GitHub · adamhathcock/sharpcompress

GitHub · e-corp-demo/CVE-2026-44788