# CVE-2018-1002206: Directory Traversal in SharpCompress

- Severity: Medium 5.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- 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): 9.33%, higher than 96% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2018-07-25T17:00:00.000Z
- Modified: 2026-09-10T03:48:44.565Z
- Also known as: GHSA-fxh6-w476-hgr4, SNYK-DOTNET-SHARPCOMPRESS-60246
- Weaknesses: CWE-22
- Assigned by: snyk

## Description

SharpCompress before 0.21.0 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in a Zip archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.

(As written by CVE List.)

## Affected

- SharpCompress SharpCompress: from unspecified before 0.21.0
- SharpCompress (NuGet): before 0.21.0
- adamhathcock sharpcompress: before 0.21.0

## Every score

- GitHub: CVSS:3.0 5.5 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.0 5.5 Medium `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/research/zip-slip-vulnerability> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246> (exploit, third-party-advisory, web)
- <https://github.com/snyk/zip-slip-vulnerability> (exploit, third-party-advisory, web)
- <https://github.com/adamhathcock/sharpcompress/pull/374> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6> (issue-tracking, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-1002206> (advisory)
- <https://github.com/adamhathcock/sharpcompress/commit/80ceb1c375fdb1b4ffba16528c99089e804ce61f> (web)

## Sources

- CVE List: [CVE-2018-1002206](https://www.cve.org/CVERecord?id=CVE-2018-1002206), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-fxh6-w476-hgr4](https://github.com/advisories/GHSA-fxh6-w476-hgr4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2018-1002206](https://nvd.nist.gov/vuln/detail/CVE-2018-1002206), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1002206 · Whole record: https://cve.day/CVE-2018-1002206.json · Rebuilt by cve.day 2026-11-25T22:57:39.086Z
