CVE-2021-32841
Summary
| CVE | CVE-2021-32841 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-01-26 22:15:00 UTC |
| Updated | 2022-02-07 19:09:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-22
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Sharpziplib Project | Sharpziplib | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| fix: specialized tar extract traversal · icsharpcode/SharpZipLib@5c3b293 · GitHub | MISC | github.com | |
| Release v1.3.3 · icsharpcode/SharpZipLib · GitHub | MISC | github.com | |
| GHSL-2021-125: Path traversal in SharpZipLib - CVE-2021-32840, CVE-2021-32841, CVE-2021-32842 | GitHub Security Lab | CONFIRM | securitylab.github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.