CVE-2022-4565: HuTool vulnerable to Uncontrolled Resource Consumption

cn.hutool:hutool-core Updated 02 Oct 2025

Summary

16/12/2022
Yes i
High
7.5

CVE-2022-4565: HuTool vulnerable to Uncontrolled Resource Consumption. Affects cn.hutool:hutool-core versions < 5.8.11. Fixed in 5.8.11. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

HuTool is an open-source Java library that provides a wide range of utility functions for developers. It is commonly used for tasks such as file manipulation, network communication, and data processing. The library is widely adopted in various Maven projects. However, versions up to 5.8.10 of HuTool are susceptible to a vulnerability that allows for uncontrolled resource consumption. This vulnerability resides in the 'cn.hutool.core.util.ZipUtil' class and can be exploited remotely. Attackers can leverage this vulnerability to exhaust system resources, potentially leading to denial of service or other malicious activities. The vulnerability has been publicly disclosed and is considered high severity with a CVSS score of 7.5.

Vulnerability Detail

The vulnerability in HuTool arises from a lack of proper resource management in the 'ZipUtil' class. By manipulating certain aspects of the library, an attacker can cause excessive resource consumption. This can result in the depletion of system resources, leading to performance degradation or even system unavailability. The vulnerability can be exploited remotely, allowing attackers to launch attacks without direct access to the target system. Upgrading to version 5.8.11 of HuTool addresses this issue by implementing proper resource handling and mitigating the risk of uncontrolled resource consumption.

How To Fix

Minimum fixed version

5.8.11

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

In conclusion, HuTool versions up to 5.8.10 are vulnerable to uncontrolled resource consumption. This can be exploited remotely, leading to system resource depletion and potential denial of service. It is crucial to upgrade to version 5.8.11 or later to mitigate this vulnerability. Regularly monitoring for security updates and promptly applying them is recommended to ensure the security of your application. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for cn.hutool:hutool-core →

Share this vulnerability

FAQ

HuTool is an open-source Java library that provides utility functions for developers. It offers a wide range of features and is commonly used in Maven projects.

The vulnerability allows for uncontrolled resource consumption, which can lead to system performance degradation or denial of service. Attackers can exploit this remotely to exhaust system resources.

To fix this vulnerability, upgrade the affected component to version 5.8.11 or later by updating the Maven dependency in your project's 'pom.xml' file.

Yes, this vulnerability can be exploited remotely, allowing attackers to launch attacks without direct access to the target system.

This vulnerability is considered high severity with a CVSS score of 7.5.

Related vulnerabilities

Recent vulnerabilities recorded for cn.hutool:hutool-core.

How To Fix

Minimum fixed version

5.8.11

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback