# CVE-2021-32841: Path Traversal in SharpZipLib

- Priority: **Routine**
- Reason: Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-01-26 · Modified: 2025-04-22
- Aliases: UBUNTU-CVE-2021-32841, GHSA-2x7h-96h5-rq84
- Record: https://cvemate.com/vulnerability/CVE-2021-32841 · JSON: https://cvemate.com/vulnerability/CVE-2021-32841/json

## Description

```text
SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Starting version 1.3.0 and prior to version 1.3.3, a check was added if the destination file is under destination directory. However, it is not enforced that `destDir` ends with slash. If the `destDir` is not slash terminated like `/home/user/dir` it is possible to create a file with a name thats begins with the destination directory, i.e. `/home/user/dir.sh`. Because of the file name and destination directory constraints, the arbitrary file creation impact is limited and depends on the use case. Version 1.3.3 contains a patch for this vulnerability.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 1.115%, percentile 67.132%, 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 \| ≥ 1.3.0, \< 1.3.0\*
- NuGet SharpZipLib (NuGet): ≥ 1.3.0, \< 1.3.3
- sharpziplib\_project sharpziplib: ≥ 1.3.0, \< 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/5c3b293de5d65b108e7f2cd0ea8f81c1b8273f78>
- <https://ubuntu.com/security/CVE-2021-32841>
- <https://www.cve.org/CVERecord?id=CVE-2021-32841>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32841>
- <https://github.com/icsharpcode/SharpZipLib>
- <https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib>

---

Data as of 2026-12-05T06:33:14.538Z. 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
