CVE-2021-32840
published high CVSS 3.1 · 7.3Path Traversal in SharpZipLib
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| icsharpcode | — | sharpziplib1.3.3 to < 1.3.3 · 0.86.0 to < 0.86.0* | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2MONO-2023-001 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | monoaarch64 | Listed in advisory | Not stated | ALAS2MONO-2023-001 |
| Amazon Linux | AL2 | monoi686 | Listed in advisory | Not stated | ALAS2MONO-2023-001 |
| Amazon Linux | AL2 | monosrc | Listed in advisory | Not stated | ALAS2MONO-2023-001 |
| Amazon Linux | AL2 | monox86_64 | Listed in advisory | Not stated | ALAS2MONO-2023-001 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| icsharpcode | sharpziplib | 1.3.3 to < 1.3.3 (affected · custom)0.86.0 to < 0.86.0* (affected · custom) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
3Provider assertions
3GitHub_M · cna
Path Traversal in SharpZipLib
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b1b2158a4f443ff01e3f3be6666d6cb2b4abc246bb02dcfabe6dfe2cf6fc12bd
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record