llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · guard-core

GHSA-HM8G-XG6V-JJG9

Rate limiting silently fell back to a per-process window on any Redis failure, ignoring redis_fail_open and multiplying the effective limit by the worker count

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
3.7
Baja
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición85 dDesde la divulgación, 27 ago 2026, 10:58 a. m.
Detección84 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
27 ago 26
20 nov 26
27 ago 26
17 sept 26
9 oct 26
30 oct 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-HM8G-XG6V-JJG9 divulgada · CVSS 3.7 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

`_redis_request_count` in `guard_core/handlers/ratelimit_handler.py` caught every Redis error (including `GuardRedisError` from a failed connection), logged it, and returned no count, so both `check_rate_limit` (the HTTP pipeline) and `check_rate_limit_by_ip` (websocket and framework-agnostic callers) fell back to the in-memory per-process window. `redis_fail_open` (default `False`) documents fail-closed behaviour on Redis failure for every check, but the rate limiter never raised.

Impact

During a Redis outage, or when a Redis-down state is induced, a deployment with N workers enforces N times its configured rate limit per client, and the shared window that bans and auto-ban counters depend on is gone, with only an error log line per request as the signal. An operator who chose `redis_fail_open=False` expecting requests to fail closed during an outage got the weaker limit instead.

Affected

All guard-core versions up to and including 3.14.0 with `enable_redis=True`.

Fixed in 3.15.0

Fixed in guard-core 3.15.0 https://github.com/rennf93/guard-core/releases/tag/3.15.0 (PyPI https://pypi.org/project/guard-core/3.15.0/), merged in #83 https://github.com/rennf93/guard-core/pull/83 (75d13343). `redis_fail_open=False`: the rate limiter raises `GuardRedisError`; the pipeline applies `fail_secure` (500 under fail-secure, pass-through otherwise) and fastapi-guard's websocket guard closes 1013. `redis_fail_open=True`: the in-memory window is used with one warning per process. Labelled Breaking in the 3.15.0 changelog.

Credit

Found by the maintainers while verifying the websocket integration for a downstream project.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:L
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
guard-core≤ 3.14.0
3.14.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
PyPIguard-core
Sin parche — — —
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/Guard-Core/guard-core/security/advisories/GHSA-hm8g-xg6v-jjg9

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