CVE-2022-39342 OpenFGA Authorization Bypass

Medium 5.9 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2022-39342?

CVE-2022-39342 is a medium-severity vulnerability in openfga, published on 25 Oct 2022.

Official description

OpenFGA is an authorization/permission engine. Versions prior to version 0.2.4 are vulnerable to authorization bypass under certain conditions. Users whose model has a relation defined as a tupleset (the right hand side of a ‘from’ statement) that involves anything other than a direct relationship (e.g. ‘as self’) are vulnerable. Version 0.2.4 contains a patch for this issue.

Weakness: CWE-285

Which versions are affected by CVE-2022-39342?

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

PackageAffectedFixed in
github.com/openfga/openfga GoAll versions0.2.4
github.com/openfga/openfga GoAll versions0.2.4
github.com/openfga/openfga GoAll versions0.2.4

Products include Openfga Openfga.

How do I fix CVE-2022-39342?

Upgrade github.com/openfga/openfga to 0.2.4 or later.

Is CVE-2022-39342 being exploited?

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

Sources

Also known as GHSA-f4mm-2r69-mg5f, GO-2022-1081.

Is CVE-2022-39342 in your software?

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

Check your SBOMs for free