CVE-2018-17297 — hutool-parent
HIGHCVE-2018-17297 is a high-severity (CVSS 7.5) Path Traversal vulnerability in cn.hutool:hutool-parent. A fix is available for cn.hutool:hutool-parent — see the affected versions and patch details below.
Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal
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
cn.hutool:hutool-parent☕cn.hutool:hutool-all☕cn.hutool:hutool-coreReal-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
The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequences in a filename within a ZIP archive.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | cn.hutool:hutool-parent | all versions | 4.1.12cn.hutool:hutool-parent:4.1.12 |
| ☕Maven | cn.hutool:hutool-all | all versions | 4.1.12cn.hutool:hutool-all:4.1.12 |
| ☕Maven | cn.hutool:hutool-core | all versions | 4.1.12cn.hutool:hutool-core:4.1.12 |
Affected Products
hutoolhutoolDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for cn.hutool:hutool-parent, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update cn.hutool:hutool-parent to 4.1.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-17297 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-17297 in your dependencies?
Find it across Maven, including transitive dependencies.