CVE-2022-23542

CVE-2022-23542 is a high-severity security vulnerability in github.com/openfga/openfga (go), affecting versions = 0.3.0. It is fixed in 0.3.1.

Summary

Overview

During our internal security assessment, it was discovered that OpenFGA versions v0.3.0 is vulnerable to authorization bypass under certain conditions.

Am I Affected?

You are affected by this vulnerability if all of the following applies:

  1. You are using OpenFGA v0.3.0
  2. You created a model using modeling language v1.1 that applies a type restriction to an object e.g. define viewer: [user]
  3. You created tuples based on the aforementioned model, e.g. document:1#viewer@user:jon
  4. You updated the previous model by adding a new type and replacing the previous restriction with the newly added type e.g. define viewer: [employee]
  5. You use the tuples created against the first model (step 3) and issue checks against the updated model e.g. user=user:jon, relation=viewer, object:document:1

How to fix that?

Upgrade to version v0.3.1

Backward Compatibility

This update is backward compatible.

Impact

Affected versions

github.com/openfga/openfga (= 0.3.0)

Security releases

github.com/openfga/openfga → 0.3.1 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade github.com/openfga/openfga to 0.3.1 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2022-23542? CVE-2022-23542 is a high-severity security vulnerability in github.com/openfga/openfga (go), affecting versions = 0.3.0. It is fixed in 0.3.1.
  2. Which versions of github.com/openfga/openfga are affected by CVE-2022-23542? github.com/openfga/openfga (go) versions = 0.3.0 is affected.
  3. Is there a fix for CVE-2022-23542? Yes. CVE-2022-23542 is fixed in 0.3.1. Upgrade to this version or later.
  4. Is CVE-2022-23542 exploitable, and should I be worried? Whether CVE-2022-23542 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2022-23542 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2022-23542? Upgrade github.com/openfga/openfga to 0.3.1 or later.

Other vulnerabilities in github.com/openfga/openfga

CVE-2026-55689CVE-2026-55170CVE-2026-48096CVE-2026-41131CVE-2026-40293

Stop the waste.
Protect your environment with Kodem.