# CVE-2018-17297: Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal

Source: https://junglewise.ai/threats/cve-2018-17297-unzip-function-in-ziputil-java-in-hutool-allows-remote-attackers  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2018-10-17  
License: CC BY 4.0 with a link back

CVE-2018-17297 · Severity: low · CVSS 3 · Published 2018-10-17

Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal

Technologies: [cn.hutool:hutool-all (Maven)](https://junglewise.ai/threats/technologies/cn-hutool-hutool-all), [cn.hutool:hutool-core (Maven)](https://junglewise.ai/threats/technologies/cn-hutool-hutool-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2018-17297 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-17297 being exploited in the wild.

**How severe is CVE-2018-17297?** Low severity, with a CVSS score of 3, published 17 October 2018.

**Which products and versions are affected?** cn.hutool:hutool-all (Maven) ECOSYSTEM:introduced=0,fixed=4.1.12; cn.hutool:hutool-core (Maven) ECOSYSTEM:introduced=0,fixed=4.1.12; cn.hutool:hutool-parent (Maven) ECOSYSTEM:introduced=0,fixed=4.1.12.

**Is there a fix for CVE-2018-17297?** Yes. cn.hutool:hutool-all (Maven): upgrade to 4.1.12 or later; cn.hutool:hutool-core (Maven): upgrade to 4.1.12 or later; cn.hutool:hutool-parent (Maven): upgrade to 4.1.12 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2018-17297?** Check whether you run cn.hutool:hutool-all (Maven), cn.hutool:hutool-core (Maven) or cn.hutool:hutool-parent (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- cn.hutool:hutool-all (Maven): upgrade to 4.1.12 or later

  ```sh
  # set cn.hutool:hutool-all to 4.1.12 in your pom.xml or build.gradle
  ```

- cn.hutool:hutool-core (Maven): upgrade to 4.1.12 or later

  ```sh
  # set cn.hutool:hutool-core to 4.1.12 in your pom.xml or build.gradle
  ```

- cn.hutool:hutool-parent (Maven): upgrade to 4.1.12 or later

  ```sh
  # set cn.hutool:hutool-parent to 4.1.12 in your pom.xml or build.gradle
  ```


## Affected products

- cn.hutool:hutool-all (Maven) ECOSYSTEM:introduced=0,fixed=4.1.12
- cn.hutool:hutool-core (Maven) ECOSYSTEM:introduced=0,fixed=4.1.12
- cn.hutool:hutool-parent (Maven) ECOSYSTEM:introduced=0,fixed=4.1.12

## Identifiers

- CVE-2018-17297
- GHSA-rhq2-2574-78mc

## Related threats

- [hutool-core was discovered to contain a stack overflow via NumberUtil.toBigDecimal method](https://junglewise.ai/threats/cve-2023-51080-hutool-core-was-discovered-to-contain-a-stack-overflow-via)
- [hutool-core discovered to contain an infinite loop in the StrSplitter.splitByRegex function](https://junglewise.ai/threats/cve-2023-51075-hutool-core-discovered-to-contain-an-infinite-loop-in-the)
- [hutool Buffer Overflow vulnerability](https://junglewise.ai/threats/cve-2023-42278-hutool-buffer-overflow-vulnerability)
- [hutool Buffer Overflow vulnerability](https://junglewise.ai/threats/cve-2023-42277-hutool-buffer-overflow-vulnerability)
- [hutool Buffer Overflow vulnerability](https://junglewise.ai/threats/cve-2023-42276-hutool-buffer-overflow-vulnerability)
