{"id":"CVE-2021-32840","aliases":["CVE-2021-32840","GHSA-m22m-h4rf-pwq3"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in SharpZipLib","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"SharpZipLib (o #ziplib) es una biblioteca Zip, GZip, Tar y BZip2. En versiones anteriores a 1.3.3, una entrada de archivo TAR \"../evil.txt\" puede ser extraída en el directorio padre de \"destFolder\". Esto conlleva a una escritura arbitraria de archivos que puede conllevar a una ejecución de código. La vulnerabilidad fue parcheada en la versión 1.3.3","source":"nvd"}],"published":"2022-01-26T21:05:10.000Z","modified":"2026-06-17T03:53:44.253Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"1.3.3","fixed":"1.3.3","status":"affected"},{"type":"custom","introduced":"0.86.0","fixed":"0.86.0*","status":"affected"}],"vendor":"icsharpcode","product":"sharpziplib","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.3"}],"ecosystem":"NuGet","package":"SharpZipLib","purl":"pkg:nuget/SharpZipLib","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.3.3"}],"vendor":"sharpziplib_project","product":"sharpziplib","cpe":"cpe:2.3:a:sharpziplib_project:sharpziplib:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/","tags":["exploit","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32840","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/icsharpcode/SharpZipLib","tags":["package"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-22T15:51:52.407Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32840","url":"https://www.cve.org/CVERecord?id=CVE-2021-32840","licence":"CVE Terms of Use","modified":"2025-04-22T18:32:29.435Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m22m-h4rf-pwq3","url":"https://github.com/advisories/GHSA-m22m-h4rf-pwq3","licence":"CC-BY-4.0","modified":"2024-02-19T05:29:32.213Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32840","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32840","licence":"Public domain","modified":"2026-06-17T03:53:44.253Z"}],"updatedAt":"2026-11-25T22:58:06.675Z","epss":{"score":0.01969,"percentile":0.81014,"date":"2026-12-01T12:00:22.000Z"}}