CVE-2023-34620 hjson stack exhaustion vulnerability

High 7.5 Published Updated

Attackers can cause denial of service in HJSON parsers by submitting crafted objects with cyclic dependencies.

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

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

Official description

An issue was discovered hjson thru 3.0.0 allows attackers to cause a denial of service or other unspecified impacts via crafted object that uses cyclic dependencies.

Weakness: CWE-787

Which versions are affected by CVE-2023-34620?

8 open source packages ship an affected version, including github.com/hjson/hjson-go/v4, github.com/hjson/hjson-go and org.hjson:hjson. It affects 1 product.

PackageAffectedFixed in
github.com/hjson/hjson-go/v4 GoAll versions4.5.0
github.com/hjson/hjson-go/v4 GoAll versions4.5.0
github.com/hjson/hjson-go/v4 GoAll versions4.5.0
github.com/hjson/hjson-go GoAll versionsNone
org.hjson:hjson MavenAll versions3.0.1
org.hjson:hjson MavenAll versions3.0.1
2 more packages
laktak/hjson PackagistAll versions2.3.0
laktak/hjson PackagistAll versions2.3.0

Products include Hjson Project Hjson.

How do I fix CVE-2023-34620?

Upgrade github.com/hjson/hjson-go/v4 to 4.5.0 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-34620 being exploited?

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

Sources

Also known as GHSA-5wfc-hjrc-gq87, GO-2026-5157.

Is CVE-2023-34620 in your software?

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

Check your SBOMs for free