CVE-2026-44788 PUBLISHED

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

Assigner: GitHub_M
Reserved: 07.05.2026 Published: 26.05.2026 Updated: 27.05.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
CVSS Score: 5.9

Product Status

Vendor adamhathcock
Product sharpcompress
Versions
  • Version <= 0.47.4 is affected

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE