Advisory

GHSA-3gfj-fxx4-f22w

Also known as: CVE-2022-39352, GO-2022-1099

Summary

OpenFGA Authorization Bypass

Details

Overview
During our internal security assessment, it was discovered that OpenFGA versions v0.2.4 and prior are vulnerable to authorization bypass under certain conditions.

Am I Affected?
You are affected by this vulnerability if you are using openfga/openfga version v0.2.4 or prior, and have tuples where the user field is set to a userset e.g. folder:test#owner, and the tuple's relation is used on the right-hand side of a from statement.

How to fix that?
Upgrade to version 0.2.5.

Backward Compatibility
This update is not backward compatible.
Any tuples where the user field is set to a userset, and the tuple's relation is used on the right-hand side of a from statement have to be rewritten.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-11-08 22:31 UTC
Modified
2024-08-21 16:28 UTC

Affected packages and fixes

github.com/openfga/openfga

Go · All systems

Affected

  • introduced 0, fixed 0.2.5 (semver)

Fixed versions

0.2.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences