Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. sharpcompress
  4. ›
  5. CVE-2026-44788

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

May 8, 2026

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.

References

  • github.com/adamhathcock/sharpcompress/security/advisories/GHSA-6c8g-7p36-r338
  • github.com/advisories/GHSA-6c8g-7p36-r338
  • nvd.nist.gov/vuln/detail/CVE-2026-44788

Code Behaviors & Features

Detect and mitigate CVE-2026-44788 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.47.4

Solution

Unfortunately, there is no solution available yet.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

nuget/sharpcompress/CVE-2026-44788.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:58 +0000.