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

GHSA-RQ86-9M6R-CM3G

SurrealDB has uncaught exception in Net module that leads to database crash

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versionesPrimer parche el mismo día de la divulgación
Exposición587 dDesde la divulgación, 10 abr 2025, 4:05 p. m.
Detección585 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 2.0.5 +2
Monitoreo
Detectada
10 abr 25
19 jul 26
17 nov 26
19 nov 26
10 abr 25
4 sept 25
29 ene 26
25 jun 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-RQ86-9M6R-CM3G divulgada
Remediación Parche 2.0.5 surrealdb · 0 d desde divulgación
Remediación Parche 2.1.5 surrealdb · 0 d desde divulgación
Remediación Parche 2.2.2 surrealdb · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

A vulnerability was found where an attacker can crash the database via crafting a HTTP query that returns a null byte. The problem relies on an uncaught exception in the `net` module, where the result of the query will be converted to JSON before showing as the HTTP response to the user in the /sql endpoint.

### Impact
This vulnerability allows any authenticated user to crash a SurrealDB instance by sending a crafted query with a null byte to the /sql endpoint.

Where SurrealDB is used as an application backend, it is possible that an application user can crash the SurrealDB instance and thus the supported application through crafted inputs that exploit this attack vector.

### Patches
A patch has been introduced that ensures the error is caught and converted as an error.
- Versions 2.2.2, 2.1.5 and 2.0.5 and later are not affected by this isssue

Workarounds

Affected users who are unable to update may want to limit the ability of untrusted clients to run arbitrary queries in the affected versions of SurrealDB. To limit the impact of the denial of service, SurrealDB administrators may also want to ensure that the SurrealDB process is running so that it can be automatically re-started after a crash.

Where SurrealDB is used as an application backend, ensure sanitisation of input at the application layer to prevent injection attacks.

### References
https://github.com/surrealdb/surrealdb/pull/5647

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
surrealdb< 2.0.5
surrealdb≥ 2.1.0 < 2.1.5
surrealdb≥ 2.2.0 < 2.2.2
2.0.5
2.1.0
2.1.5
2.2.0
2.2.2
4.0.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iosurrealdb
Corregida 2.0.5, 2.1.5, 2.2.2 0 d · 0 d · 0 d 4.0.1 no afectada
Versiones corregidas2.0.52.1.52.2.2
Explotación

Arsenal público

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

Referencias
Otrahttps://github.com/surrealdb/surrealdb/security/advisories/GHSA-rq86-9m6r-cm3g
Otrahttps://github.com/surrealdb/surrealdb/pull/5647
Otrahttps://github.com/surrealdb/surrealdb

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