CVEvulnerability
CVE-2021-32840
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-01-26
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.3 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-22
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.
Affected configurations
• sharpziplib project sharpziplib (< 1.3.3)
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc Patch, Third Party Advisory
- https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ Exploit, Third Party Advisory
- https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc Patch, Third Party Advisory
- https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ Exploit, Third Party Advisory