CVE-2018-1002208 — SharpZipLib
MEDIUMCVE-2018-1002208 is a medium-severity (CVSS 5.5) Path Traversal vulnerability in SharpZipLib. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for SharpZipLib — see the affected versions and patch details below.
Improper Limitation of a Pathname to a Restricted Directory in SharpZipLib
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
SharpZipLibReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
SharpZipLib before 1.0 RC1 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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | SharpZipLib | all versions | 1.0.0-rc1dotnet add package SharpZipLib --version 1.0.0-rc1 |
Affected Products
sharpziplibsharpziplib_projectResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for SharpZipLib, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update SharpZipLib to 1.0.0-rc1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-1002208 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is CVE-2018-1002208 in your dependencies?
Find it across NuGet, including transitive dependencies.