CVE-2023-42278 hutool Buffer Overflow vulnerability

High 7.5 Published Updated

A buffer overflow in Hutool's JSON parsing allows attackers to execute arbitrary code or cause denial of service.

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-42278?

CVE-2023-42278 is a high-severity memory corruption vulnerability in n/a, published on 8 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

hutool v5.8.21 was discovered to contain a buffer overflow via the component JSONUtil.parse().

Weakness: CWE-120

Which versions are affected by CVE-2023-42278?

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

PackageAffectedFixed in
cn.hutool:hutool-core MavenAll versions5.8.22
cn.hutool:hutool-core MavenAll versions5.8.22
cn.hutool:hutool-json MavenAll versions5.8.22
cn.hutool:hutool-json MavenAll versions5.8.22

Products include Hutool Hutool.

How do I fix CVE-2023-42278?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-42278 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-42278 exists.

Sources

Also known as GHSA-rr66-qh5m-w6mx.

Is CVE-2023-42278 in your software?

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

Check your SBOMs for free