CVE-2024-23820 OpenFGA DoS

Medium 5.3 Published Updated

Attackers can cause OpenFGA server crashes via memory exhaustion in ListObjects calls, requiring a patch to restore service availability.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-23820?

CVE-2024-23820 is a medium-severity denial of service vulnerability in openfga, published on 26 Jan 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

OpenFGA, an authorization/permission engine, is vulnerable to a denial of service attack in versions prior to 1.4.3. In some scenarios that depend on the model and tuples used, a call to `ListObjects` may not release memory properly. So when a sufficiently high number of those calls are executed, the OpenFGA server can create an `out of memory` error and terminate. Version 1.4.3 contains a patch for this issue.

Weakness: CWE-401, CWE-770

Which versions are affected by CVE-2024-23820?

3 open source packages ship an affected version, including github.com/openfga/openfga. It affects 1 product.

PackageAffectedFixed in
github.com/openfga/openfga GoAll versions1.4.3
github.com/openfga/openfga GoAll versions1.4.3
github.com/openfga/openfga GoAll versions1.4.3

Products include Openfga Openfga.

How do I fix CVE-2024-23820?

Upgrade github.com/openfga/openfga to 1.4.3 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-2024-23820 being exploited?

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

Sources

Also known as GHSA-rxpw-85vw-fx87, GO-2024-2477.

Is CVE-2024-23820 in your software?

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

Check your SBOMs for free