cn.hutool:hutool-core@5.8.22 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the cn.hutool:hutool-core package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Out-of-bounds Write

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.

How to fix Out-of-bounds Write?

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

[5.8.22,5.8.25)
  • H
Resource Exhaustion

Affected versions of this package are vulnerable to Resource Exhaustion via the StrSplitter.splitByRegex function. An attacker can cause a system to become unresponsive by manipulating the first two parameters.

Note:

If the first two parameters are "", no matter how the last two parameters are set, the executing program will enter an infinite loop.

How to fix Resource Exhaustion?

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

[,5.8.24)