CVE-2023-42277: hutool Buffer Overflow vulnerability

cn.hutool:hutool-core Updated 02 Oct 2025

Summary

09/09/2023
No i
Critical
9.8

CVE-2023-42277: hutool Buffer Overflow vulnerability. Affects cn.hutool:hutool-core versions < 5.8.21. No fix is published. 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

The hutool package is a Java library that provides a wide range of utility methods and tools for various tasks. It includes components for JSON manipulation, among other functionalities. The vulnerability affects versions up to and including 5.8.21 of the hutool-core and hutool-json packages.

Vulnerability Detail

The vulnerability in hutool v5.8.21 is a buffer overflow issue that arises from the jsonObject.putByPath component. This vulnerability can be exploited to execute arbitrary code or cause a denial-of-service attack. It poses a moderate risk to systems utilizing the affected versions of hutool.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

No workaround has been provided for this vulnerability.

Conclusion

The hutool Buffer Overflow vulnerability in versions up to and including 5.8.21 poses a moderate risk to systems utilizing the hutool-core and hutool-json packages. It is recommended to upgrade to a version beyond 5.8.21 and validate user input to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability can allow an attacker to execute arbitrary code or cause a denial-of-service attack.

Versions up to and including 5.8.21 of the hutool-core and hutool-json packages are affected.

To fix the vulnerability, upgrade the hutool-core and hutool-json packages to a version beyond 5.8.21.

No workaround has been provided for this vulnerability.

You can find more information about this vulnerability in the GitHub Advisory Database.

Related vulnerabilities

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

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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