{"answers":{"affected":"3 open source packages ship an affected version, including github.com/yi-ge/unzip. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-36561 exists.","fix":"Upgrade github.com/yi-ge/unzip to 1.0.3-0.20200308084313-2adbaa4891b9 or later.","what":"CVE-2020-36561 is a critical path traversal vulnerability in github.com/yi-ge/unzip, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-36561 and fix it if it is affected.\n\nWhat it is: CVE-2020-36561 is a critical path traversal vulnerability in github.com/yi-ge/unzip, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-36561 exists.\n\nAffected packages and fixed versions:\n- github.com/yi-ge/unzip (Go): affected all versions; fixed in 1.0.3-0.20200308084313-2adbaa4891b9\n- github.com/yi-ge/unzip (Go): affected all versions; fixed in 1.0.3-0.20200308084313-2adbaa4891b9\n- github.com/yi-ge/unzip (Go): affected all versions; fixed in 1.0.3-0.20200308084313-2adbaa4891b9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-36561/ (Markdown: https://insights.sbomify.com/CVE-2020-36561/index.md)","id":"CVE-2020-36561","markdown":"https://insights.sbomify.com/CVE-2020-36561/index.md","name":"CVE-2020-36561","record":{"aliases":["GHSA-f5c5-hmw9-v8hx","GO-2020-0035"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Go unzip library","requires_auth":"none","summary":"Attackers can write or overwrite files outside the target directory via crafted archives, affecting applications using this Go library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[{"product":"unzip","vendor":"unzip_project"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path traversal in github.com/yi-ge/unzip","id":"CVE-2020-36561","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":3,"n_references":4,"next":{"headline":"Uncontrolled Resource Consumption in github.com/shiyanhui/dht","id":"CVE-2020-36562"},"packages":[{"ecosystem":"Go","fixed":["1.0.3-0.20200308084313-2adbaa4891b9"],"introduced":["0"],"last_affected":[],"package":"github.com/yi-ge/unzip","purl":null,"source":"GHSA-f5c5-hmw9-v8hx"},{"ecosystem":"Go","fixed":["1.0.3-0.20200308084313-2adbaa4891b9"],"introduced":["0"],"last_affected":[],"package":"github.com/yi-ge/unzip","purl":"pkg:golang/github.com/yi-ge/unzip","source":"GHSA-f5c5-hmw9-v8hx"},{"ecosystem":"Go","fixed":["1.0.3-0.20200308084313-2adbaa4891b9"],"introduced":["0"],"last_affected":[],"package":"github.com/yi-ge/unzip","purl":"pkg:golang/github.com/yi-ge/unzip","source":"GO-2020-0035"}],"prev":{"headline":"Path traversal in github.com/artdarek/go-unzip","id":"CVE-2020-36560"},"products":["github.com/yi-ge/unzip"],"published":"2022-12-27","related":[{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2018-1000035","kev_date_added":null,"published":"2018-02-09"},{"cvss_score":5.5,"headline":"Memory corruption in n/a","id":"CVE-2018-18384","kev_date_added":null,"published":"2018-10-16"},{"cvss_score":4,"headline":"Memory corruption in n/a","id":"CVE-2014-9913","kev_date_added":null,"published":"2017-01-18"},{"cvss_score":4,"headline":"Memory corruption in n/a","id":"CVE-2016-9844","kev_date_added":null,"published":"2017-01-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-11","vendors":["github.com/yi-ge/unzip"]},"summary":"Attackers can write or overwrite files outside the target directory via crafted archives, affecting applications using this Go library.","url":"https://insights.sbomify.com/CVE-2020-36561/"}