{"answers":{"affected":"2 open source packages ship an affected version, including SharpZipLib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-1002208 in the wild and no public exploit code.","fix":"Upgrade SharpZipLib to 1.0.0-rc1 or later.","what":"CVE-2018-1002208 is a medium-severity path traversal vulnerability in SharpZipLib, published on 25 Jul 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-1002208 and fix it if it is affected.\n\nWhat it is: CVE-2018-1002208 is a medium-severity path traversal vulnerability in SharpZipLib, published on 25 Jul 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-1002208 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- SharpZipLib (NuGet): affected all versions; fixed in 1.0.0-rc1\n- SharpZipLib (NuGet): affected all versions; fixed in 1.0.0-rc1\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-2018-1002208/ (Markdown: https://insights.sbomify.com/CVE-2018-1002208/index.md)","id":"CVE-2018-1002208","markdown":"https://insights.sbomify.com/CVE-2018-1002208/index.md","name":"CVE-2018-1002208","record":{"aliases":["DEBIAN-CVE-2018-1002208","GHSA-cqj4-m2pc-v9m5","SNYK-DOTNET-SHARPZIPLIB-60247","UBUNTU-CVE-2018-1002208"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"C# Zip library","requires_auth":"none","summary":"Attackers can write arbitrary files via directory traversal in Zip archives, impacting applications using SharpZipLib for extraction.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"sharpziplib","vendor":"sharpziplib_project"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"SharpZipLib before 1.0 RC1 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in a Zip archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Limitation of a Pathname to a Restricted Directory in SharpZipLib","id":"CVE-2018-1002208","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":2,"n_references":5,"next":{"headline":"Path traversal in quazip","id":"CVE-2018-1002209"},"packages":[{"ecosystem":"NuGet","fixed":["1.0.0-rc1"],"introduced":["0"],"last_affected":[],"package":"SharpZipLib","purl":null,"source":"GHSA-cqj4-m2pc-v9m5"},{"ecosystem":"NuGet","fixed":["1.0.0-rc1"],"introduced":["0"],"last_affected":[],"package":"SharpZipLib","purl":"pkg:nuget/SharpZipLib","source":"GHSA-cqj4-m2pc-v9m5"}],"prev":{"headline":"Arbitrary File Write via Archive Extraction in mholt/archiver","id":"CVE-2018-1002207"},"products":["SharpZipLib"],"published":"2018-07-25","related":[{"cvss_score":7.3,"headline":"Path Traversal in SharpZipLib","id":"CVE-2021-32840","kev_date_added":null,"published":"2022-01-26"},{"cvss_score":4,"headline":"Path Traversal in SharpZipLib","id":"CVE-2021-32841","kev_date_added":null,"published":"2022-01-26"},{"cvss_score":4,"headline":"Path Traversal in SharpZipLib","id":"CVE-2021-32842","kev_date_added":null,"published":"2022-01-26"}],"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":"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["SharpZipLib"]},"summary":"Attackers can write arbitrary files via directory traversal in Zip archives, impacting applications using SharpZipLib for extraction.","url":"https://insights.sbomify.com/CVE-2018-1002208/"}