{"answers":{"affected":"2 open source packages ship an affected version, including net.lingala.zip4j:zip4j. It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-1002202 in the wild and no public exploit code.","fix":"Upgrade net.lingala.zip4j:zip4j to 1.3.3 or later.","what":"CVE-2018-1002202 is a medium-severity path traversal vulnerability in zip4j, published on 25 Jul 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-1002202 and fix it if it is affected.\n\nWhat it is: CVE-2018-1002202 is a medium-severity path traversal vulnerability in zip4j, published on 25 Jul 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-1002202 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- net.lingala.zip4j:zip4j (Maven): affected all versions; fixed in 1.3.3\n- net.lingala.zip4j:zip4j (Maven): affected all versions; fixed in 1.3.3\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-1002202/ (Markdown: https://insights.sbomify.com/CVE-2018-1002202/index.md)","id":"CVE-2018-1002202","markdown":"https://insights.sbomify.com/CVE-2018-1002202/index.md","name":"CVE-2018-1002202","record":{"aliases":["GHSA-2rpm-4x8c-pvqg"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Java zip library","requires_auth":"none","summary":"Attackers can write arbitrary files via malicious Zip entries, potentially leading to code execution or data modification in applications using zip4j.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"zip4j","vendor":"zip4j_project"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"zip4j before 1.3.3 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":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-06-30","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-06-30T16:35:10Z","kind":"github_poc","ref":"https://github.com/iris-sast/zip4j","stars":0,"title":"CWE-Bench-Java CVE-2018-1002202 versions 1.3.2, 1.3.3"},{"date":"2025-08-18T17:10:22Z","kind":"github_poc","ref":"https://github.com/shoucheng3/srikanth-lingala__zip4j_CVE-2018-1002202_1-3-2","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Improper Limitation of a Pathname to a Restricted Directory in Zip4j","id":"CVE-2018-1002202","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":2,"n_references":4,"next":{"headline":"Arbitrary File Write via Archive Extraction in unzipper","id":"CVE-2018-1002203"},"packages":[{"ecosystem":"Maven","fixed":["1.3.3"],"introduced":["0"],"last_affected":[],"package":"net.lingala.zip4j:zip4j","purl":null,"source":"GHSA-2rpm-4x8c-pvqg"},{"ecosystem":"Maven","fixed":["1.3.3"],"introduced":["0"],"last_affected":[],"package":"net.lingala.zip4j:zip4j","purl":"pkg:maven/net.lingala.zip4j/zip4j","source":"GHSA-2rpm-4x8c-pvqg"}],"prev":{"headline":"Improper Limitation of a Pathname to a Restricted Directory in zt-zip","id":"CVE-2018-1002201"},"products":["zip4j"],"published":"2018-07-25","related":[{"cvss_score":5.9,"headline":"Zip4j Origin Validation Error","id":"CVE-2023-22899","kev_date_added":null,"published":"2023-01-10"},{"cvss_score":5.5,"headline":"Uncaught Exception in zip4j","id":"CVE-2022-24615","kev_date_added":null,"published":"2022-02-24"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["zip4j"]},"summary":"Attackers can write arbitrary files via malicious Zip entries, potentially leading to code execution or data modification in applications using zip4j.","url":"https://insights.sbomify.com/CVE-2018-1002202/"}