Vulnerability Details : CVE-2021-32840
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.
Vulnerability category: Directory traversal
Products affected by CVE-2021-32840
- cpe:2.3:a:sharpziplib_project:sharpziplib:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32840
1.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 85 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-32840
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
7.3
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L |
2.5
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2021-32840
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2021-32840
-
https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc
test: add tests for tar path traversal · icsharpcode/SharpZipLib@a0e96de · GitHubPatch;Third Party Advisory
-
https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3
Release v1.3.3 · icsharpcode/SharpZipLib · GitHubThird Party Advisory
-
https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/
GHSL-2021-125: Path traversal in SharpZipLib - CVE-2021-32840, CVE-2021-32841, CVE-2021-32842 | GitHub Security LabExploit;Third Party Advisory
Jump to