CVE-2021-32840: icsharpcode sharpziplib Path Traversal
Vulnerability summary
CVE-2021-32840 is a critical (CVSS 9.8) Path Traversal vulnerability in icsharpcode sharpziplib. EPSS estimates a 1.91% chance of exploitation in the next 30 days, higher than 79.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 26-01-2022PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
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 metrics
5 scores · 4 sources · 2 versions- CVE.orgCNA7.3HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · NugetEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:LDiffers
EPSS trend
Probability
1.91%
Chance of exploitation in the next 30 days
Percentile
79%
Versus all other CVEs
30-day change
-0.07 pp
From 1.97% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGhsl 2021 125 Sharpziplib
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Icsharpcode1 product
- sharpziplib≥ 1.3.3, < 1.3.3 | ≥ 0.86.0, < 0.86.0*
NuGet1 product
- SharpZipLib< 1.3.3
Sharpziplib_project1 product
- sharpziplib< 1.3.3
Ubuntu1 product
- monoAll versions (No fix recorded)
4 vendors · 4 products
References
8 links- securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/X Refsource CONFIRMREPORTExploitThird Party Advisory
- github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221ccX Refsource MISCREPORTWEBPatchThird Party Advisory