CVE-2018-1002206
MEDIUM 5.5CVSS 3.0Directory Traversal in SharpCompress
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'.
- Published
- 25 Jul 2018
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-fxh6-w476-hgr4SNYK-DOTNET-SHARPCOMPRESS-60246
- Sources
- NVDJSONOSV GHSA-fxh6-w476-hgr4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | adamhathcock | sharpcompresscpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:* |
< 0.21.0 | 0.21.0 |
| OSV | NuGet | SharpCompress | < 0.21.0 | 0.21.0 |
References
- https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/adamhathcock/sharpcompress/pull/374 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/snyk/zip-slip-vulnerability · Exploit, Third Party Advisory, WEB
- 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://nvd.nist.gov/vuln/detail/CVE-2018-1002206 · ADVISORY
- https://github.com/adamhathcock/sharpcompress/commit/80ceb1c375fdb1b4ffba16528c99089e804ce61f · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 25 Jul 2018)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 11 Sep 2019)