CVE-2021-32842
CVSS V2 Medium 5
CVSS V3 Medium 5.3
Description
SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Starting version 1.0.0 and prior to version 1.3.3, a check was added if the destination file is under a destination directory. However, it is not enforced that `_baseDirectory` ends with slash. If the _baseDirectory is not slash terminated like `/home/user/dir` it is possible to create a file with a name thats begins as the destination directory one level up from the 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 fixed this vulnerability.
Overview
- CVE ID
- CVE-2021-32842
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-01-26T21:15:13
- Last Modified Date
- 2022-02-07T19:09:41
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:sharpziplib_project:sharpziplib:*:*:*:*:*:*:*:* | 1 | OR | 1.0.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/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-32842 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32842 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:33:45 | Added to TrackCVE | |||
2022-12-06 07:48:41 | 2022-01-26T21:15Z | 2022-01-26T21:15:13 | CVE Published Date | updated |
2022-12-06 07:48:41 | 2022-02-07T19:09:41 | CVE Modified Date | updated | |
2022-12-06 07:48:41 | Analyzed | Vulnerability Status | updated |