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

GHSA-JWR6-6444-28XV

Denial of Service via malformed SurrealML model import

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

Parche disponible
Descargar PNG JSON
CVSS 3.1
4.9
Media
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a 61 d 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.
Sin prisa pero sin pausa, como yo en el páramo.Respira hondo: esta no muerde… todavía.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 3.1.6
Monitoreo
Detectada +1
2 jul 26
1 sept 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-JWR6-6444-28XV divulgada · CVSS 4.9 (GitHub)
Divulgación Modificada Última actualización del registro
Remediación Parche 3.1.6 surrealdb · 61 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

An authenticated system user holding the Owner role (at root, namespace, or database level, scoped to the target database) can crash a SurrealDB server by uploading a small malformed `.surml` file to the `/ml/import` endpoint.

The uploaded bytes are passed directly into the SurrealML header parser, which used unchecked `unwrap()` calls and array indexing on attacker-controlled header fields. A malformed field — for example a non-numeric input-dimensions value — panics during header parsing. Because `surrealdb-core` is built with `panic = 'abort'`, the panic terminates the entire server process.

Impact

What an attacker can do:

  • With the Owner role (at root, namespace, or database level, scoped to the target database), crash the entire server with a single small malformed `.surml` upload to `/ml/import`.
  • Deny service to every namespace and database on that instance until it is restarted — because `surrealdb-core` is built with `panic = 'abort'`, the panic aborts the whole process, not just the request.

What it can't do:

  • Reach this code path without the Owner role — record/scope users and users holding only the Editor or Viewer role cannot call `/ml/import`.
  • Affect confidentiality or integrity — the crash occurs during import parsing, before the model is stored (availability only).
  • Affect deployments built without the `ml` feature, or that do not expose the `/ml/import` route.
Patches

A patch has been introduced that makes the SurrealML header parsers fail closed: malformed input-dimensions, origin, and output/normaliser fields now return a structured `BadRequest` error instead of panicking, so a malformed upload is rejected with an error response rather than crashing the server.

  • Versions 3.1.6 and later are not affected by this issue.
Workarounds

Users unable to patch should consider the following workarounds:

  • Build or deploy without the `ml` feature if machine-learning model import/export is not required.
  • Grant the Owner role sparingly; only Owners can import models, so callers without it cannot reach the vulnerable code path.
  • Run SurrealDB under a process supervisor that restarts it on exit (e.g. Kubernetes, systemd `Restart=on-failure`, or a Docker restart policy), so the server recovers immediately after a crash. This limits downtime but does not prevent the crash.
References
  • DEFINE MODEL https://surrealdb.com/docs/surrealql/statements/define/model
  • SurrealDB Documentation — Capabilities https://surrealdb.com/docs/surrealdb/security/capabilities
  • `fix(surrealml): reject malformed model headers instead of panicking` (included in SurrealDB 3.2.0 and backported to 3.1.6)
  • surrealdb/surrealml https://github.com/surrealdb/surrealml — the standalone `surrealml-core` crate carries the same parser; the fix must be mirrored there.
  • GHSA-wjjj-24cx-f28g https://github.com/surrealdb/surrealdb/security/advisories/GHSA-wjjj-24cx-f28g — related `panic = 'abort'` denial-of-service in RPC handling.
Acknowledgements

Thank you to sondt99 https://github.com/sondt99 for reporting this issue.

### Credits
- Thai Son Dinh from VinSOC Labs (R&D)

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:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
5.0/ 10Medio
Vector 5.0 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

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

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iosurrealdb
Corregida 3.1.6 61 d 4.0.1 no afectada
Versiones corregidas3.1.6
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-jwr6-6444-28xv

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