CVE-2024-23820: OpenFGA denial of service
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.21683%
CWE
Published
1/26/2024
Updated
2/1/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/openfga/openfga | go | < 1.4.3 | 1.4.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper resource cleanup in ListObjects handling. The commit fixes show critical changes to channel management patterns:
- In list_objects.go, the consumer loop was restructured to handle channel closure properly and added error channel separation
- In reverse_expand.go, the Execute function was modified to return errors directly instead of sending through the channel, ensuring proper cleanup
- The removal of ReverseExpandResult.Err field indicates a shift in error handling strategy These changes address CWE-401 (memory not released) by ensuring channels are closed and goroutines properly terminated, and CWE-770 (resource limits) through better concurrency control.