llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · github.com/openfga/openfga

GHSA-HR9R-8PHQ-5X8J

OpenFGA vulnerable to denial of service due to circular relationship

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -2 d de la divulgación
Exposición1.240 dDesde la divulgación, 28 jun 2023, 5:49 p. m.
Detección1.237 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche v1.1.1
Monitoreo
Detectada
26 jun 23
28 jun 23
8 nov 23
17 nov 26
20 nov 26
26 jun 23
2 may 24
9 mar 25
14 ene 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche v1.1.1 github.com/openfga/openfga · -2 d desde divulgación
Divulgación Publicada GHSA-HR9R-8PHQ-5X8J divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Overview

OpenFGA versions v1.1.0 and prior are vulnerable to a DoS attack when certain Check and ListObjects calls are executed against authorization models that contain circular relationship definitions.

Am I Affected?

You are affected by this vulnerability if you are using OpenFGA v1.1.0 or earlier, and if you are executing certain Check https://openfga.dev/api/service#/Relationship%20Queries/Check or ListObjects https://openfga.dev/api/service#/Relationship%20Queries/ListObjects calls against a vulnerable authorization model. To see which of your models could be vulnerable to this attack, download OpenFGA v1.2.0 and run the following command:

./openfga validate-models --datastore-engine <ENGINE> --datastore-uri <URI> | jq .[] | select(.Error | contains("loop"))

replacing the variables `<ENGINE>` and `<URI>` as needed.

Fix

Upgrade to v1.1.1.

Backward Compatibility

If you are not passing an invalid authorization model (as identified by running `./openfga validate-models`) as a parameter of your Check and ListObjects calls, this upgrade is backwards compatible.

Otherwise, OpenFGA v1.1.1 will start returning HTTP 400 status codes on those calls.

Versiones

Rangos afectados

Afectada Corregida Última
github.com/openfga/openfga< 1.1.1
1.1.1
v1.22.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogithub.com/openfga/openfga
Corregida v1.1.1 -2 d v1.22.1 no afectada
Versiones corregidas1.1.1v1.1.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-35933
Otrahttps://github.com/openfga/openfga/security/advisories/GHSA-hr9r-8phq-5x8j
Otrahttps://github.com/openfga/openfga/commit/087ce392595f3c319ab3028b5089118ea4063452
Otrahttps://github.com/openfga/openfga
Otrahttps://openfga.dev/api/service#/Relationship%20Queries/Check
Otrahttps://openfga.dev/api/service#/Relationship%20Queries/ListObjects

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.