{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-32842","published":"2022-01-26T21:15:13.337000Z","last_modified":"2026-06-17T03:53:44.513000Z","status":"Modified","cvss":{"version":"3.1","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:sharpziplib_project:sharpziplib:*:*:*:*:*:*:*:*","part":"a","vendor":"sharpziplib_project","product":"sharpziplib","version_start_including":"1.0.0","version_end_excluding":"1.3.3"}],"cpes_truncated":false,"vendors":["sharpziplib_project"],"products":["sharpziplib_project/sharpziplib"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00924,"percentile":0.58742,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-mm6g-mmq6-53ff","ecosystem":"NuGet","name":"SharpZipLib","purl":"pkg:nuget/SharpZipLib","ranges":[{"introduced":"1.0.0","fixed":"1.3.3"}],"versions":["1.0.0","1.1.0","1.2.0","1.3.0","1.3.1","1.3.2"],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-32842/","html_en":"/en/cve/CVE-2021-32842/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32842","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32842"},"untrusted":{"vendor_name":"Sharpziplib Project","product_name":"Sharpziplib","desc_en":"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.","affected":[{"untrusted_vendor":"icsharpcode","untrusted_product":"sharpziplib","versions":[]}],"references":[{"url":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3","tags":["Release Notes","Third Party Advisory"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/","tags":["Exploit","Third Party Advisory"]}]}}