7.1high
SurrealDB before 1.2.1 Denial of Service via Parsing Error
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.25% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-8xff-473h-f863
Description
SurrealDB versions before 1.2.1 contain an uncaught exception handling vulnerability in span rendering when parsing queries with errors on line terminator characters. Authorized clients can submit malformed queries that trigger a panic in the span rendering code, crashing the server and causing denial of service.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| surrealdb surrealdb | before 1.2.1 Not affected: 1.2.1 | CVE List, NVD |
| surrealdb (crates.io) | before 1.2.1 | GitHub Advisory Database |
All scores
| VulnCheck | 7.1high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
SurrealDB versions before 1.2.1 contain an uncaught exception handling vulnerability in span rendering when parsing queries with errors on line terminator characters. Authorized clients can submit malformed queries that trigger a panic in the span rendering code, crashing the server and causing denial of service.
GitHub Advisory Database
The span rendering would panic when handling failed parsing of queries where the error occurred on a line terminator character.
Impact
A client that is authorized to run queries in a SurrealDB server is able to execute a malformed query which will fail to parse on a line terminator character and cause a panic in the span rendering code. This will crash the server, leading to denial of service.
Patches
- Version 1.2.1 and later are not affected by this issue.
Workarounds
Concerned users unable to update may want to limit the ability of untrusted users to run arbitrary SurrealQL 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.
References
NVD (es)
Las versiones de SurrealDB anteriores a la 1.2.1 contienen una vulnerabilidad de manejo de excepciones no capturadas en la renderización de tramos al analizar consultas con errores en los caracteres de terminación de línea. Los clientes autorizados pueden enviar consultas malformadas que desencadenan un pánico en el código de renderización de tramos, bloqueando el servidor y causando denegación de servicio.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58364 changed 2026-07-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8xff-473h-f863 changed 2026-07-19 | CC-BY-4.0 |
| NVD | CVE-2024-58364 changed 2026-10-27 | Public domain |