CVE-2018-17297 json
Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal
published 2018-09-21 8 y ago modified 2026-06-17 4 mo ago also GHSA-rhq2-2574-78mc , EUVD-2018-0685
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.7%
- EPSS 2.7% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven cn.hutool:hutool-parent 4.1.12
- maven cn.hutool:hutool-all 4.1.12
- maven cn.hutool:hutool-core 4.1.12
- hutool hutool 4.1.12
Exploit prediction
2.67% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | cn.hutool:hutool-parent | <4.1.12 |
4.1.12 |
| maven | cn.hutool:hutool-all | <4.1.12 |
4.1.12 |
| maven | cn.hutool:hutool-core | <4.1.12 |
4.1.12 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/looly/hutool/issues/162
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-17297
advisory
-
github.com
/advisories/GHSA-rhq2-2574-78mc
advisory
-
github.com
/looly/hutool
package
Sources
- CVE List CVE-2018-17297
- GitHub Advisory GHSA-rhq2-2574-78mc
- NVD CVE-2018-17297
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.