{"schemaVersion":3,"id":"CVE-2020-36561","aliases":["GHSA-f5c5-hmw9-v8hx","GO-2020-0035"],"status":"published","duplicateOf":null,"title":null,"description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","dates":{"published":"2022-12-27T21:13:22.650Z","modified":"2025-04-11T16:38:20.416Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01363,"percentile":0.71361,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.03800000000000001,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01325},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01363,"percentile":0.71361}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01325,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01363,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01363,"percentile":0.71361}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_YI-GE_UNZIP","name":"Unzip","source":"github","url":"https://github.com/yi-ge/unzip/pull/1","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"github.com/yi-ge/unzip","product":"github.com/yi-ge/unzip","name":"github.com/yi-ge/unzip","label":"github.com/yi-ge/unzip","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.3-0.20200308084313-2adbaa4891b9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.3-0.20200308084313-2adbaa4891b9","eol":null,"hubHref":"/vendor/githubcomyi-geunzip/githubcomyi-geunzip"},{"vendor":"github.com/yi-ge","product":"unzip","name":"github.com/yi-ge/unzip","label":"unzip","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/yi-ge/unzip","purlType":"golang","versions":[{"text":"< 1.0.3-0.20200308084313-2adbaa4891b9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.3-0.20200308084313-2adbaa4891b9","eol":null,"hubHref":null},{"vendor":"unzip_project","product":"unzip","name":"unzip","label":"unzip","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.3-0.20200308084313-2adbaa4891b9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.3-0.20200308084313-2adbaa4891b9","eol":null,"hubHref":"/vendor/unzip_project/unzip"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/yi-ge/unzip/pull/1","label":"github.com/yi-ge/unzip/pull/1","hostname":"github.com","tags":["WEB","FIX","Exploit","Third Party Advisory"]},{"url":"https://github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73","label":"github.com/yi-ge/unzip/commit/2adbaa4891b9690853ef10216189189f5ad7dc73","hostname":"github.com","tags":["WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","label":"snyk.io/research/zip-slip-vulnerability","hostname":"snyk.io","tags":["WEB","Technical Description","Third Party Advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0035","label":"pkg.go.dev/vuln/GO-2020-0035","hostname":"pkg.go.dev","tags":["WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36561","label":"nvd.nist.gov/vuln/detail/CVE-2020-36561","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/yi-ge/unzip","label":"github.com/yi-ge/unzip","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-12-27T21:13:22.650Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-11T16:38:20.416Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:11:14.667Z","stale":false,"partial":false}}