Intel

AIKIDO-2024-10214

hutool-core is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource Consumption Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 12, 2024

80

High Risk

This Affects:

JAVAhutool-core
4.6.5 - 5.8.29
Fixed in 5.8.30
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to uncontrolled resource consumption. When multiple concurrent calls are made to ZipUtil.zip(fileb, filea.listFiles()) and fileb is also in the filea directory, the zip function will traverse the file and add its own file to it, resulting in a self-loop. This causes the fileb file to continue growing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

hutool-core is vulnerable to Uncontrolled Resource Consumption in versions 4.6.5 - 5.8.29.

How to fix this

Upgrade the org.dromara.hutool:hutool-core library to the patch version.