CVE-2023-5236 Infinispan: circular reference on marshalling leads to dos

Medium 4.4 Published Updated

An authenticated attacker can cause a denial of service by inserting a malicious object with circular references into the Infinispan cache.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-5236?

CVE-2023-5236 is a medium-severity denial of service vulnerability in Red Hat Data Grid 8, published on 18 Dec 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A flaw was found in Infinispan, which does not detect circular object references when unmarshalling. An authenticated attacker with sufficient permissions could insert a maliciously constructed object into the cache and use it to cause out of memory errors and achieve a denial of service.

Which versions are affected by CVE-2023-5236?

2 open source packages ship an affected version, including org.infinispan.protostream:protostream. It affects 3 products.

PackageAffectedFixed in
org.infinispan.protostream:protostream MavenAll versions4.6.2.Final
org.infinispan.protostream:protostream MavenAll versions4.6.2.Final

Products include Infinispan Infinispan, Redhat Data Grid, Redhat Jboss Data Grid.

How do I fix CVE-2023-5236?

Upgrade org.infinispan.protostream:protostream to 4.6.2.Final 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-5236 being exploited?

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

Sources

Also known as GHSA-488m-w9fp-5mm2.

Is CVE-2023-5236 in your software?

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

Check your SBOMs for free