CVE-2018-1002206 json
Directory Traversal in SharpCompress
published 2018-07-25 8 y ago modified 2026-09-10 1 mo ago also GHSA-fxh6-w476-hgr4 , EUVD-2019-0666
- cvss
- 5.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 9.3%
- EPSS 9.3% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
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'.
Patch / fix
- nuget SharpCompress 0.21.0
- SharpCompress SharpCompress 0.21.0
Exploit prediction
9.33% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/research/zip-slip-vulnerability referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/snyk/zip-slip-vulnerability referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | SharpCompress | <0.21.0 |
0.21.0 |
Affected products
- SharpCompress SharpCompress
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/adamhathcock/sharpcompress/pull/374
web, issue-tracking, patch, third-party-advisory
-
github.com
/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6
web, issue-tracking, patch, third-party-advisory
-
github.com
/adamhathcock/sharpcompress/commit/80ceb1c375fdb1b4ffba16528c99089e804ce61f
web
-
snyk.io
/research/zip-slip-vulnerability
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246
web, exploit, third-party-advisory
-
github.com
/snyk/zip-slip-vulnerability
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-1002206
advisory
Sources
- CVE List CVE-2018-1002206
- GitHub Advisory GHSA-fxh6-w476-hgr4
- NVD CVE-2018-1002206
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.