CVE-2023-50572 JLine vulnerable to out of memory error

Medium 5.5 Published Updated

Attackers can trigger an OutOfMemory error in the GroovyEngine component, causing a denial of service in applications using the jline-groovy library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-50572?

CVE-2023-50572 is a medium-severity denial of service vulnerability in n/a, published on 29 Dec 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An issue in the component GroovyEngine.execute of jline-groovy v3.24.1 allows attackers to cause an OOM (OutofMemory) error.

Weakness: CWE-787

Which versions are affected by CVE-2023-50572?

2 open source packages ship an affected version, including org.jline:jline-parent. It affects 1 product.

PackageAffectedFixed in
org.jline:jline-parent MavenAll versions3.25.0
org.jline:jline-parent MavenAll versions3.25.0

Products include Jline Jline.

How do I fix CVE-2023-50572?

Upgrade org.jline:jline-parent to 3.25.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-50572 being exploited?

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

Sources

Also known as AZL-66918, AZL-66920, GHSA-2268-98wh-qfhf, UBUNTU-CVE-2023-50572.

Is CVE-2023-50572 in your software?

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

Check your SBOMs for free