CVE-2021-32840
Sharpziplib Project Sharpziplib vulnerability
SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Prior to version 1.3.3, a TAR file entry `../evil.txt` may be extracted in the parent directory of `destFolder`. This leads to arbitrary file write that may lead to code execution. The vulnerability was patched in version 1.3.3.
Affected products
Sharpziplib. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sharpziplib Project Sharpziplib runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc · Patch
- github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 · Third Party Advisory
- securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ · Exploit
- nvd.nist.gov/vuln/detail/CVE-2021-32840
- cve.org/CVERecord?id=CVE-2021-32840
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.