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'.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://snyk.io/research/zip-slip-vulnerability | third party advisory exploit |
https://snyk.io/vuln/SNYK-DOTNET-SHARPCOMPRESS-60246 | third party advisory exploit |
https://github.com/snyk/zip-slip-vulnerability | third party advisory exploit |
https://github.com/adamhathcock/sharpcompress/pull/374 | patch third party advisory issue tracking |
https://github.com/adamhathcock/sharpcompress/commit/42b1205fb435de523e6ef8ac5b7bafbe712997f6 | patch third party advisory issue tracking |