{"id":"CVE-2021-32840","published":"2022-01-26T21:05:10Z","modified":"2025-04-22T18:32:29Z","title":"Path Traversal in SharpZipLib","vendor":"icsharpcode","product":"sharpziplib","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01969,"percentile":0.80923,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc","tags":["x_refsource_MISC"]}],"priority":{"score":21.3,"factors":[{"name":"EPSS percentile","points":16.18},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"icsharpcode","affectedVersions":[{"vendor":"icsharpcode","product":"sharpziplib","versions":[">= 1.3.3, < 1.3.3",">= 0.86.0, < 0.86.0*"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:51:52.407516Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"SharpZipLib","vulnerableRanges":["<1.3.3"],"patched":["1.3.3"],"from":["GHSA-m22m-h4rf-pwq3"],"provenance":"source"}],"summary":{"text":"The path traversal flaw in icsharpcode's SharpZipLib library, the Zip, GZip, Tar and BZip2 component, lets a crafted TAR entry such as ../evil.txt be extracted into the parent directory of the destination folder. An attacker who can supply a malicious TAR archive for the library to extract, with no authentication or user interaction required, can write arbitrary files outside the intended directory, which may lead to code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:16Z"},"euvd":{"id":"EUVD-2022-1085","exploited":false,"provenance":"source"}}