Skip to content

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

High severity GitHub Reviewed Published Oct 17, 2018 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

maven cn.hutool:hutool-all (Maven)

Affected versions

< 4.1.12

Patched versions

4.1.12
maven cn.hutool:hutool-core (Maven)
< 4.1.12
4.1.12
maven cn.hutool:hutool-parent (Maven)
< 4.1.12
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.

References

Published to the GitHub Advisory Database Oct 17, 2018
Reviewed Jun 16, 2020
Last updated Jan 9, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Weaknesses

CVE ID

CVE-2018-17297

GHSA ID

GHSA-rhq2-2574-78mc

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.