CVE-2024-58364
JSON

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 packageVersionsReported by
surrealdb surrealdbbefore 1.2.1
Not affected: 1.2.1
CVE List, NVD
surrealdb (crates.io)before 1.2.1GitHub Advisory Database

All scores

VulnCheck7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-248

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

SourceRecordLicence
CVE ListCVE-2024-58364 changed 2026-07-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-8xff-473h-f863 changed 2026-07-19CC-BY-4.0
NVDCVE-2024-58364 changed 2026-10-27Public domain