CVE-2022-39342 json
OpenFGA Authorization Bypass
published 4y ago modified 4mo ago also GHSA-f4mm-2r69-mg5f , GO-2022-1081 , EUVD-2022-7086
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/openfga/openfga 0.2.4
- openfga openfga 0.2.4
Is CVE-2022-39342 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.14% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/openfga/openfga | <0.2.4 |
0.2.4 |
Affected products
- openfga openfga
Classification
References
-
github.com
/openfga/openfga/commit/c8db1ee3d2a366f18e585dd33236340e76e784c4
web, patch, third-party-advisory
-
github.com
/openfga/openfga/security/advisories/GHSA-f4mm-2r69-mg5f
web, third-party-advisory, advisory
-
github.com
/openfga/openfga/releases/tag/v0.2.4
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-39342
advisory
-
github.com
/openfga/openfga
package
Sources
- CVE List CVE-2022-39342
- GitHub Advisory GHSA-f4mm-2r69-mg5f
- NVD CVE-2022-39342
- OSV GO-2022-1081
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.