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

GHSA-XX7M-69FF-9CRP

SurrealDB vulnerable to Denial of Service through scripting function memory edge case

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -7 d de la divulgación
Exposición280 dDesde la divulgación, 12 feb 2026, 5:11 p. m.
Detección277 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 3.0.0-beta.3
Parche 2.6.1
Monitoreo
Detectada
5 feb 26
12 feb 26
21 jul 26
17 nov 26
20 nov 26
5 feb 26
18 abr 26
29 jun 26
9 sept 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.0.0-beta.3 surrealdb · -7 d desde divulgación
Divulgación Publicada GHSA-XX7M-69FF-9CRP divulgada
Remediación Parche 2.6.1 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

In SurrealDB instances with the scripting capability enabled (`--allow-scripting`), users with the ability to run arbitrary queries can trigger a server crash due to a memory-safety bug in the underlying JS engine. The SurrealDB instance terminates instantly, requiring a manual restart.

The query consists of using built-in string functions to construct a large string and passing it to the JavaScript runtime for compilation. The exact string size required to trigger the crash varies between SurrealDB versions.

Whilst exploiting the vulnerability requires users to be able to run arbitrary queries, if guest access (`--allow-guests`), is enabled, then guests can perform this attack.

Impact

Any user able to execute queries on a SurrealDB instance with scripting enabled (`--allow-scripting`) can cause complete denial of service. The server process terminates immediately without graceful shutdown.

The underlying cause of the vulnerability is a null pointer dereference in the `QuickJS-NG` v0.8 JavaScript engine, this vulnerability cannot be exploited to execute arbitrary code, or compromise the integrity or confidentiality of data.

Patches

Versions prior to SurrealDB `v2.6.1` and `v3.0.0-beta.3` are vulnerable.

The patches for SurrealDB `v2.6.1` and `v3.0.0-beta.3` update the `rquickjs` dependency from `v0.9.0` to `v0.11.0`, which in turn uses an updated version of `QuickJS-NG`.

### Workarounds
Deny execution of embedded scripting functions through the configuration of capabilities https://surrealdb.com/docs/surrealdb/security/capabilities#capabilities by starting SurrealDB with the `--deny-scripting` flag or the equivalent environment variable `SURREAL_CAPS_DENY_SCRIPT=true`. This has a usability implication, although scripting functions are disabled by default.

Administrators can also use `--deny-arbitrary-query` to deny arbitrary querying by either `guest`, `record` or `system` users, or a combination of those, with impacts to functionality for those users.

### Links ###
SurrealDB Documentation - Capabilities https://surrealdb.com/docs/surrealdb/security/capabilities
SurrealDB Documentation - Guest Access https://surrealdb.com/docs/surrealdb/security/capabilities#guest-access
SurrealQL Documentation - Scripting Functions https://surrealdb.com/docs/surrealql/functions/script
quickjs-ng v0.9 Release Notes https://github.com/quickjs-ng/quickjs/releases/tag/v0.9.0
https://github.com/surrealdb/surrealdb/pull/6833
https://github.com/surrealdb/surrealdb/pull/6774

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.6.1
surrealdb≥ 3.0.0-alpha.8 < 3.0.0-beta.3
2.6.1
3.0.0-alpha.8
3.0.0-beta.3
4.0.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iosurrealdb
Corregida 2.6.1, 3.0.0-beta.3 0 d · -7 d 4.0.1 no afectada
Versiones corregidas2.6.13.0.0-beta.3
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-xx7m-69ff-9crp
Otrahttps://github.com/surrealdb/surrealdb/pull/6774
Otrahttps://github.com/surrealdb/surrealdb/pull/6833
Otrahttps://github.com/surrealdb/surrealdb/commit/2b0389b92398d9ecff4632cd51bbf8303832a988
Otrahttps://github.com/surrealdb/surrealdb/commit/bcd2ece9ef0d721215f06a47280698669f332285
Otrahttps://github.com/surrealdb/surrealdb

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