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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-08T23:50:40.000Z
- Modified: 2026-07-24T11:10:00.170Z
- Also known as: GHSA-6c8g-7p36-r338
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- adamhathcock sharpcompress: <= 0.47.4; up to 0.47.4
- SharpCompress (NuGet): before 0.48.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/adamhathcock/sharpcompress/security/advisories/GHSA-6c8g-7p36-r338> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44788> (advisory)
- <https://github.com/adamhathcock/sharpcompress/commit/2021a06626d0555a4d69471386e763ca5f5d5dfb> (web)
- <https://github.com/adamhathcock/sharpcompress> (package)

## Sources

- CVE List: [CVE-2026-44788](https://www.cve.org/CVERecord?id=CVE-2026-44788), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-6c8g-7p36-r338](https://github.com/advisories/GHSA-6c8g-7p36-r338), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-44788](https://nvd.nist.gov/vuln/detail/CVE-2026-44788), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-44788 · Whole record: https://cve.day/CVE-2026-44788.json · Rebuilt by cve.day 2026-11-25T22:59:22.394Z
