CVE-2021-32840
Path Traversal in SharpZipLib
Reported by github_m · Published January 26, 2022
SharpZipLib is fixed in 1.3.3 (NuGet)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| SharpZipLib | NuGet | 1.3.3 |
| sharpziplib | icsharpcode | 1.3.3 |
| sharpziplib | sharpziplib_project | 1.3.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| icsharpcode | sharpziplib | 1.3.3, 0.86.0 |
| icsharpcode | sharpziplib | 1.3.3, 0.86.0 |
| NuGet | SharpZipLib | 0 |
Timeline
- Jan 26, 2022 CVE Published
- Jan 27, 2022 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 17, 2026 Security Advisory
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32840
vulnetix vdb fixes CVE-2021-32840
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32840/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-32840 advisory
- https://github.com/advisories/GHSA-m22m-h4rf-pwq3 advisory