CVE-2021-32840
CRITICAL 9.8CVSS 3.1Path Traversal in 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.
- Published
- 26 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-m22m-h4rf-pwq3
- Sources
- NVDJSONOSV GHSA-m22m-h4rf-pwq3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sharpziplib_project | sharpziplibcpe:2.3:a:sharpziplib_project:sharpziplib:*:*:*:*:*:*:*:* |
< 1.3.3 | 1.3.3 |
| OSV | NuGet | SharpZipLib | < 1.3.3 | 1.3.3 |
References
- https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc · Patch, Third Party Advisory, WEB
- https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 · Third Party Advisory, WEB
- https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ · Exploit, Third Party Advisory, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-32840 · ADVISORY
- https://github.com/icsharpcode/SharpZipLib · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 26 Jan 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Feb 2022)