CVE-2023-51074 json-path Out-of-bounds Write vulnerability

Medium 5.3 Published Updated

A stack overflow in the Criteria.parse method allows attackers to cause a denial of service in applications using the json-path library.

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

CVE-2023-51074 is a medium-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

json-path v2.8.0 was discovered to contain a stack overflow via the Criteria.parse() method.

Which versions are affected by CVE-2023-51074?

2 open source packages ship an affected version, including com.jayway.jsonpath:json-path. It affects 1 product.

PackageAffectedFixed in
com.jayway.jsonpath:json-path MavenFrom 2.2.02.9.0
com.jayway.jsonpath:json-path MavenFrom 2.2.02.9.0

Products include Json-Path Jayway Jsonpath.

How do I fix CVE-2023-51074?

Upgrade com.jayway.jsonpath:json-path to 2.9.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-51074 being exploited?

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

Sources

Also known as CLSA-2026-1788766643, CLSA-2026-1788767433, CLSA-2026-1788853239, CLSA-2026-1788853251, CLSA-2026-1788853304, CLSA-2026-1789382508 and 6 more.

Is CVE-2023-51074 in your software?

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

Check your SBOMs for free