CVE-2023-51075 hutool-core discovered to contain an infinite loop in the StrSplitter.splitByRegex function

High 7.5 Published Updated

Attackers can cause a Denial of Service in hutool-core by triggering an infinite loop in the string splitting function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-51075?

CVE-2023-51075 is a high-severity denial of service vulnerability in n/a, published on 27 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

hutool-core v5.8.23 was discovered to contain an infinite loop in the StrSplitter.splitByRegex function. This vulnerability allows attackers to cause a Denial of Service (DoS) via manipulation of the first two parameters.

Weakness: CWE-835

Which versions are affected by CVE-2023-51075?

2 open source packages ship an affected version, including cn.hutool:hutool-core. It affects 1 product.

PackageAffectedFixed in
cn.hutool:hutool-core MavenAll versions5.8.24
cn.hutool:hutool-core MavenAll versions5.8.24

Products include Hutool Hutool.

How do I fix CVE-2023-51075?

Upgrade cn.hutool:hutool-core to 5.8.24 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-51075 being exploited?

There is no known exploitation of CVE-2023-51075 in the wild and no public exploit code.

Sources

Also known as GHSA-7m7h-rgvp-3v4r.

Is CVE-2023-51075 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free