{"api_version":"1","generated_at":"2026-07-23T13:08:52+00:00","cve":"CVE-2021-32840","urls":{"html":"https://cve.report/CVE-2021-32840","api":"https://cve.report/api/cve/CVE-2021-32840.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32840","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32840"},"summary":{"title":"CVE-2021-32840","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-01-26 21:15:00","updated_at":"2022-02-07 19:10:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc","name":"https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc","refsource":"MISC","tags":[],"title":"test: add tests for tar path traversal · icsharpcode/SharpZipLib@a0e96de · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3","name":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3","refsource":"MISC","tags":[],"title":"Release v1.3.3 · icsharpcode/SharpZipLib · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/","name":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/","refsource":"CONFIRM","tags":[],"title":"GHSL-2021-125: Path traversal in SharpZipLib - CVE-2021-32840, CVE-2021-32841, CVE-2021-32842 | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32840","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32840","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32840","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"sharpziplib_project","cpe5":"sharpziplib","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32840","qid":"356193","title":"Amazon Linux Security Advisory for mono : ALASMONO-2023-001"},{"cve":"CVE-2021-32840","qid":"356479","title":"Amazon Linux Security Advisory for mono : ALAS2MONO-2023-001"},{"cve":"CVE-2021-32840","qid":"591178","title":"Phoenix Contact FL Network Manager Path Traversal Vulnerability (CVE-2021-32840,CVE-2021-32842)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32840","STATE":"PUBLIC","TITLE":"Path Traversal in SharpZipLib"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"sharpziplib","version":{"version_data":[{"version_affected":"<","version_name":"1.3.3","version_value":"1.3.3"},{"version_affected":">=","version_name":"0.86.0","version_value":"0.86.0"}]}}]},"vendor_name":"icsharpcode"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/","refsource":"CONFIRM","url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/"},{"name":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3","refsource":"MISC","url":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3"},{"name":"https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc","refsource":"MISC","url":"https://github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc"}]},"source":{"discovery":"INTERNAL"}},"nvd":{"publishedDate":"2022-01-26 21:15:00","lastModifiedDate":"2022-02-07 19:10:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:sharpziplib_project:sharpziplib:*:*:*:*:*:*:*:*","versionEndExcluding":"1.3.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32840","Ordinal":"208228","Title":"CVE-2021-32840","CVE":"CVE-2021-32840","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32840","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32840","Ordinal":"2","NoteData":"2022-01-26","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32840","Ordinal":"3","NoteData":"2022-01-26","Type":"Other","Title":"Modified"}]}}}