CVE-2022-39342 OpenFGA Authorization Bypass
- 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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/openfga/openfga Go | All versions | 0.2.4 |
github.com/openfga/openfga Go | All versions | 0.2.4 |
github.com/openfga/openfga Go | All versions | 0.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.
Other vulnerabilities in openfga
Sources
Also known as GHSA-f4mm-2r69-mg5f, GO-2022-1081.