CVE-2021-32840

published 26 Jan 2022 · updated 22 Apr 2025

Path Traversal in SharpZipLib

7.3HighCVSS 7.3EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 0.86.0* and 1.3.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
icsharpcode>=0.86.0 <0.86.0*, >=1.3.3 <1.3.30.86.0*, 1.3.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-32840 severity on Zeptric[![CVE-2021-32840](https://zeptric.io/badge/cve/CVE-2021-32840.svg)](https://zeptric.io/cve/CVE-2021-32840)