# CVE-2021-32840: Path Traversal in SharpZipLib

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 0.86.0\*, 1.3.3 (CNA); fix release not confirmed
- Status: published
- Published: 2022-01-26 · Modified: 2025-04-22
- Aliases: UBUNTU-CVE-2021-32840, GHSA-m22m-h4rf-pwq3
- Record: https://cvemate.com/vulnerability/CVE-2021-32840 · JSON: https://cvemate.com/vulnerability/CVE-2021-32840/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.969%, percentile 81.117%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- ubuntu mono (Ubuntu): All versions (No fix recorded)
- icsharpcode sharpziplib: ≥ 1.3.3, \< 1.3.3 \| ≥ 0.86.0, \< 0.86.0\*
- NuGet SharpZipLib (NuGet): \< 1.3.3
- sharpziplib\_project sharpziplib: \< 1.3.3

## References

- <https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/>
- <https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3>
- <https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc>
- <https://ubuntu.com/security/CVE-2021-32840>
- <https://www.cve.org/CVERecord?id=CVE-2021-32840>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32840>
- <https://github.com/icsharpcode/SharpZipLib>
- <https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib>

---

Data as of 2026-12-05T06:33:15.549Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
