Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | cn.hutool:hutool-all | < 4.1.12 | 4.1.12 |
| Java / Kotlin (Maven) | cn.hutool:hutool-core | < 4.1.12 | 4.1.12 |
| Java / Kotlin (Maven) | cn.hutool:hutool-parent | < 4.1.12 | 4.1.12 |
References
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-22- Platform
- Java / Kotlin (Maven)
- Package
cn.hutool:hutool-all, cn.hutool:hutool-core, cn.hutool:hutool-parent- Disclosed
- 17.10.2018
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-rhq2-2574-78mc - CC BY 4.0
Vulnerability history: cn.hutool:hutool-core
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 9
- First → latest
- 10.2018 12.2023
- Without a fix
- 3
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 7
Disclosures per year
- 2018: 1
- 2019: 0
- 2020: 0
- 2021: 0
- 2022: 1
- 2023: 7
- 2024: 0
- 2025: 0
- 2026: 0
-
Unzip function in ZipUtil.java in Hutool allows remote attackers to overwrite arbitrary files via directory traversal this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.