Bug 1584412
| Summary: | sharpziplib: zip slip - arbitrary file write vulnerability / arbitrary code execution using a specially crafted zip file | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | Laura Pardo <lpardo> |
| Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED UPSTREAM | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | dmoppert, pokorra.mailinglists, security-response-team |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | sharpcompress 0.21.1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-10 10:27:03 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1585948, 1585949 | ||
| Bug Blocks: | |||
|
Description
Laura Pardo
2018-05-30 20:21:47 UTC
Created sharpziplib tracking bugs for this issue: Affects: fedora-27 [bug 1585948] Affects: fedora-28 [bug 1585949] I had a look at https://github.com/snyk/zip-slip-vulnerability It does not actually say that sharplibzip is vulnerable. There does not seem to be an upstream bug for sharplibzip yet. (In reply to Timotheus Pokorra from comment #3) > I had a look at https://github.com/snyk/zip-slip-vulnerability > It does not actually say that sharplibzip is vulnerable. > > There does not seem to be an upstream bug for sharplibzip yet. hmm you're right, there seems to have been some confusion between this report and the one for sharpcompress. The Snyk advisory lists sharpziplib as "lacks high-level API" which is only partially correct. FastZip.cs and TarArchive.cs both include ExtractEntry methods which appear to be vulnerable. The wiki examples also don't defend against these attacks, afaics. This pull request against SharpCompress illustrates one strategy to fix: https://github.com/adamhathcock/sharpcompress/pull/374 there is now an official bug upstream: https://github.com/icsharpcode/SharpZipLib/issues/232 and a potential fix: https://github.com/piksel/SharpZipLib/commit/79503293a6991d7074236b9442c151562b94c648 This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products. |