CVE-2018-1002206Adamhathcock Sharpcompress
Medium 5.5
Follow: this CVE · Adamhathcock · Adamhathcock Sharpcompress We alert you by email or Slack (account required).
- Priority
- 34
- CVSS 3.0
- 5.5
- EPSS
- 9.3% probability of exploitation in 30 days · percentile 96
- Auth required
- Yes
- Published
- Jul 25, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
What happens
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'.
What to do
- Apply the vendor's security update for Sharpcompress.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | SharpCompress |
< 0.21.0 |
0.21.0 |
dotnet add package SharpCompress --version 0.21.0 |
Per OSV / GitHub Advisories (GHSA-fxh6-w476-hgr4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| adamhathcock | sharpcompress | < 0.21.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Patch Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory
- snyk.io Exploit Third Party Advisory