Read the docs

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

VendorProductAffected versionsFixed inStatusSource
SharpCompressSharpCompressbefore 0.21.00.21.0Patch availableCNA
—SharpCompress (NuGet)before 0.21.00.21.0Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:adamhathcock:sharpcompress:*:*:*:*:*:*:*:*before 0.21.0Vulnerableadamhathcock
  • 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

  1. 2026-10-02 Threatist record created from CVE-2018-1002206
  2. 2026-10-03 Alias added: GHSA-fxh6-w476-hgr4

References

  • TI-2026-32672 SharpCompress: Directory traversal via directory entries in WriteToDirectory (zip slip variant) CVSS 3.1MEDIUM 6.5

Sources