CVE-2018-1002202 — zip4j
MEDIUMCVE-2018-1002202 is a medium-severity (CVSS 6.5) Path Traversal vulnerability in net.lingala.zip4j:zip4j. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for net.lingala.zip4j:zip4j — see the affected versions and patch details below.
Improper Limitation of a Pathname to a Restricted Directory in Zip4j
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
net.lingala.zip4j:zip4jReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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'.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | net.lingala.zip4j:zip4j | all versions | 1.3.3net.lingala.zip4j:zip4j:1.3.3 |
Affected Products
zip4jzip4j_projectResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for net.lingala.zip4j:zip4j, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update net.lingala.zip4j:zip4j to 1.3.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-1002202 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is CVE-2018-1002202 in your dependencies?
Find it across Maven, including transitive dependencies.