GitHub Advisory Database
GHSA-h6c8-cww8-35hf
OpenFGA has an Authorization Bypass through cached keys
Details
Description
In OpenFGA, under specific conditions, models using conditions with caching enabled can result in two different check requests producing the same cache key. This can result in OpenFGA reusing an earlier cached result for a different request.
Am I Affected?
Users are affected if the following preconditions are met:
- The model has relations which rely on condition evaluation.
- Caching is enabled.
Fix
Upgrade to OpenFGA v1.13.1.
Acknowledgement
OpenFGA would like to thank @Amemoyoi for the discovery and responsible disclosure.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/openfga/openfga | All versions before 1.13.1 (fixed in 1.13.1) |