CVE-2021-32841
CVSS V2 Medium 5
CVSS V3 Medium 5.3
Description
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.
Overview
- CVE ID
- CVE-2021-32841
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-01-26T22:15:07
- Last Modified Date
- 2022-02-07T19:09:29
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:sharpziplib_project:sharpziplib:*:*:*:*:*:*:*:* | 1 | OR | 1.3.0 | 1.3.3 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 5
- Severity
- MEDIUM
- Exploitability Score
- 10
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- NONE
- Availability Impact
- NONE
- Base Score
- 5.3
- Base Severity
- MEDIUM
- Exploitability Score
- 3.9
- Impact Score
- 1.4
References
Reference URL | Reference Tags |
---|---|
https://github.com/icsharpcode/SharpZipLib/commit/5c3b293de5d65b108e7f2cd0ea8f81c1b8273f78 | Patch Third Party Advisory |
https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 | Release Notes Third Party Advisory |
https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ | Exploit Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-32841 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32841 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:33:45 | Added to TrackCVE | |||
2022-12-06 07:48:52 | 2022-01-26T22:15Z | 2022-01-26T22:15:07 | CVE Published Date | updated |
2022-12-06 07:48:52 | 2022-02-07T19:09:29 | CVE Modified Date | updated | |
2022-12-06 07:48:52 | Analyzed | Vulnerability Status | updated |