CVE-2023-42277 hutool Buffer Overflow vulnerability

Critical 9.8 Published Updated

A buffer overflow in the Hutool Java library allows attackers to potentially execute arbitrary code or cause denial of service via crafted JSON input.

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

What is CVE-2023-42277?

CVE-2023-42277 is a critical 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 jsonObject.putByPath.

Weakness: CWE-120

Which versions are affected by CVE-2023-42277?

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 versions to 5.8.21None
cn.hutool:hutool-core MavenAll versions to 5.8.21None
cn.hutool:hutool-json MavenAll versions to 5.8.21None
cn.hutool:hutool-json MavenAll versions to 5.8.21None

Products include Hutool Hutool.

How do I fix CVE-2023-42277?

No fix has been published for CVE-2023-42277 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2023-42277 being exploited?

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

Sources

Also known as GHSA-7p8c-crfr-q93p.

Is CVE-2023-42277 in your software?

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

Check your SBOMs for free