llamaCVEVulnerability Intelligence
/
Advisory · GitHub · crates.io · surrealdb

GHSA-5X4X-2946-QR67

SSRF via JWKS URL — allow-listed hostname resolving to a private IP

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
4.1
Media
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición142 dDesde la divulgación, 2 jul 2026, 10:31 a. m.
Detección141 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Bien priorizada, bien dormida.Ni pánico ni ignorarla: término medio.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 3.2.0
Monitoreo
Detectada +1
2 jul 26
20 nov 26
21 nov 26
2 jul 26
7 ago 26
11 sept 26
17 oct 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-5X4X-2946-QR67 divulgada · CVSS 4.1 (GitHub)
Remediación Parche 3.2.0 surrealdb · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

SurrealDB fetches the JWKS document for a JWT or record access method over the network, gated by `--allow-net`/`--deny-net`. The check in `core/src/iam/jwks.rs` (`check_capabilities_url`) validates only the URL host string; the fetch then runs on a `reqwest` client using the default DNS resolver, with no check on the resolved addresses. An Owner can point an access method at an `--allow-net`-permitted hostname that resolves to loopback, link-local, cloud-metadata, or private address space, causing the server to issue a GET to that internal address — one a direct URL to the same IP would block.

Impact

What an attacker can do:

  • With the Owner role at database level or above (the minimum to run `DEFINE ACCESS ... TYPE JWT URL` / `TYPE RECORD ... WITH JWT URL`), point an access method at an allow-listed hostname resolving to an internal address, causing a GET the allowlist was meant to block (loopback, `169.254.169.254`, RFC 1918).
  • Infer internal host/port liveness from response-timing and JWKS-parse-success differences.

What it can't do:

  • Read the response — the fetch is blind (body parsed only as a JWKS; failures surface as an opaque `InvalidAuth` error).
  • Modify data or affect availability (a single GET).
Patches

The JWKS fetcher now uses the same capability-aware DNS resolver as the protected `HttpClient`, re-checking every resolved address and blocking private/special-use IPs unless explicitly allow-listed.

  • Versions 3.2.0 and later are not affected by this issue.
Workarounds
  • Use only trusted JWKS hosts that resolve to fixed public addresses, or use locally defined keys instead of a remote JWKS.
  • Restrict the Owner role to trusted operators.
  • Enforce network-layer egress filtering (block loopback, `169.254.0.0/16`, and internal ranges).
References
  • SurrealDB Documentation — Capabilities https://surrealdb.com/docs/surrealdb/security/capabilities
  • SurrealQL Documentation — DEFINE ACCESS https://surrealdb.com/docs/surrealql/statements/define/access
  • `fix(core): enforce JWKS network capabilities at the resolved IP` (included in SurrealDB 3.2.0)
Acknowledgements

Thanks to @DavidCarliez https://github.com/DavidCarliez for finding and reporting this issue.

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:L
BajaAlta
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
7.3/ 10Alto
Vector 7.3 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
surrealdb< 3.2.0
3.2.0
4.0.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iosurrealdb
Corregida 3.2.0 0 d 4.0.1 no afectada
Versiones corregidas3.2.0
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/surrealdb/surrealdb/security/advisories/GHSA-5x4x-2946-qr67

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