Vulnerability record · CVE-2021-32840 · published 26 January 2022
CVE-2021-32840: Sharpziplib project sharpziplib path traversal vulnerability
Sharpziplib Project · Sharpziplib
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.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc | PatchThird Party Advisory |
| https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 | Third Party Advisory |
| https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ | ExploitThird Party Advisory |
| https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc | PatchThird Party Advisory |
| https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 | Third Party Advisory |
| https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ | ExploitThird Party Advisory |
Track CVE-2021-32840 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-32840), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.