ADVISORIES

GitHub Advisory Database

GHSA-jwvj-g8pc-cx45

OpenFGA's BatchCheck within-request deduplication produces incorrect authorization decisions via list-value cache-key collision

Details

Description

In OpenFGA, under specific conditions, BatchCheck calls with multiple checks sent for the same object, relation, and user combination can result in improper policy enforcement.

Am I affected?

You are affected if you meet the following preconditions:

  • You execute BatchCheck operations which rely on context.
  • Multiple checks are sent within a single BatchCheck operation for the same user/object/relation combination, each containing context.
  • The contexts between those checks differ in a specific way

Fix

Upgrade to OpenFGA v1.14.0

Acknowledgement

OpenFGA would like to thank @bugbunny-research for the discovery and detailed report.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/openfga/openfga
From 1.8.0 before 1.14.0 (fixed in 1.14.0)

References