Out-of-bounds Write Affecting cn.hutool:hutool-core package, versions [5.8.22,5.8.25)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-CNHUTOOL-6182936
  • published21 Jan 2024
  • disclosed27 Dec 2023
  • credithenrikplate

Introduced: 27 Dec 2023

CVE-2023-51080  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade cn.hutool:hutool-core to version 5.8.25 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via the NumberUtil.toBigDecimal method when the input parameter is "NaN". An attacker can disrupt the normal operations of the application by supplying crafted input that triggers a stack overflow.

Note This vulnerability doesn't affect environments using JDK 8.

CVSS Scores

version 3.1