Path traversal in SharpCompress
Priority LOW 37CWE-22Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub.
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'.
Why it matters now
EPSS 0.09332 95th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed SharpCompress (SharpCompress): 0.21.0SharpCompress (NuGet): 0.21.0
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| SharpCompress | SharpCompress | before 0.21.0 | 0.21.0 | Patch available | CNA |
| — | SharpCompress (NuGet) | before 0.21.0 | 0.21.0 | Patch available | GHSA-fxh6-w476-hgr4 |
- SharpCompress VendorSharpCompress Affected before 0.21.0 Fixed in 0.21.0 Patch available CNA
- SharpCompress (NuGet) Vendor— Affected before 0.21.0 Fixed in 0.21.0 Patch available GHSA-fxh6-w476-hgr4
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:* | before 0.21.0 | Vulnerable | adamhathcock |
- cpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:* Versions before 0.21.0 Vulnerable ·adamhathcock
Remediation
- Fix · CNA SharpCompress (SharpCompress) Fixed in 0.21.0
- Fix · GHSA-fxh6-w476-hgr4 SharpCompress (NuGet) Fixed in 0.21.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2018-1002206
- 2026-10-03 Alias added: GHSA-fxh6-w476-hgr4
References
Patch 2
More adamhathcock Sharpcompress vulnerabilities
- TI-2026-32672 SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant) CVSS 3.1MEDIUM 6.5
Sources
- CVE-2018-1002206 · CVE Program
- CVE-2018-1002206 · NVD
- FIRST EPSS
- GHSA-fxh6-w476-hgr4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences