What’s Vulnerable › Vulnerabilities
CVE-2018-1002206
- Severity: medium (CVSS 5.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 9.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-07-25 · updated 2026-06-17
- Weakness: CWE-22
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'.
Affected products
- adamhathcock sharpcompress: before 0.21.0 — fixed in 0.21.0
How to fix
Upgrade to a fixed version: adamhathcock sharpcompress 0.21.0. Check the vendor advisory for mitigations.
References
- https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6
- https://github.com/adamhathcock/sharpcompress/pull/374
- https://github.com/snyk/zip-slip-vulnerability
- https://snyk.io/research/zip-slip-vulnerability
- https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246
- https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6
- https://github.com/adamhathcock/sharpcompress/pull/374
- https://github.com/snyk/zip-slip-vulnerability
- https://snyk.io/research/zip-slip-vulnerability
- https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246
Get alerted when CVE-2018-1002206 or the next vulnerability affects your stack