{"api_version":"1","generated_at":"2026-04-22T23:30:30+00:00","cve":"CVE-2020-36561","urls":{"html":"https://cve.report/CVE-2020-36561","api":"https://cve.report/api/cve/CVE-2020-36561.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-36561","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-36561"},"summary":{"title":"CVE-2020-36561","description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","state":"PUBLIC","assigner":"security@golang.org","published_at":"2022-12-27 22:15:00","updated_at":"2023-06-08 21:15:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://snyk.io/research/zip-slip-vulnerability","name":"https://snyk.io/research/zip-slip-vulnerability","refsource":"MISC","tags":[],"title":"Zip Slip Vulnerability | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/yi-ge/unzip/pull/1","name":"https://github.com/yi-ge/unzip/pull/1","refsource":"MISC","tags":[],"title":"fix: sanitize filepath names by snoopysecurity · Pull Request #1 · yi-ge/unzip · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://pkg.go.dev/vuln/GO-2020-0035","name":"https://pkg.go.dev/vuln/GO-2020-0035","refsource":"MISC","tags":[],"title":"GO-2020-0035 - Go Packages","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73","name":"https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73","refsource":"MISC","tags":[],"title":"Merge pull request #1 from snoopysecurity/fix/santize-filename-paths · yi-ge/unzip@2adbaa4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-36561","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36561","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"36561","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"unzip_project","cpe5":"unzip","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"go","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2020-36561","ASSIGNER":"security@golang.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE 29: Path Traversal: \"\\..\\filename\""}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"github.com/yi-ge/unzip","product":{"product_data":[{"product_name":"github.com/yi-ge/unzip","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"1.0.3-0.20200308084313-2adbaa4891b9"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/yi-ge/unzip/pull/1","refsource":"MISC","name":"https://github.com/yi-ge/unzip/pull/1"},{"url":"https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73","refsource":"MISC","name":"https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73"},{"url":"https://snyk.io/research/zip-slip-vulnerability","refsource":"MISC","name":"https://snyk.io/research/zip-slip-vulnerability"},{"url":"https://pkg.go.dev/vuln/GO-2020-0035","refsource":"MISC","name":"https://pkg.go.dev/vuln/GO-2020-0035"}]}},"nvd":{"publishedDate":"2022-12-27 22:15:00","lastModifiedDate":"2023-06-08 21:15: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:N/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.2}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:unzip_project:unzip:*:*:*:*:*:go:*:*","versionEndExcluding":"1.0.3-0.20200308084313-2adbaa4891b9","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}