CVE-2024-58365
JSON

7.1high

SurrealDB before 1.2.0 Denial of Service via Nonexistent Function

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-6wr5-jmpr-mjcx

Description

SurrealDB versions before 1.2.0 contain an uncaught exception vulnerability in the query executor when processing calls to nonexistent built-in functions. Authorized clients can craft pre-parsed queries invoking nonexistent functions to trigger a panic that crashes the server.

Affected

Product or packageVersionsReported by
surrealdb surrealdbbefore 1.2.0
Not affected: 1.2.0
CVE List, NVD
surrealdb (crates.io)before 1.2.0GitHub 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.0 contain an uncaught exception vulnerability in the query executor when processing calls to nonexistent built-in functions. Authorized clients can craft pre-parsed queries invoking nonexistent functions to trigger a panic that crashes the server.

GitHub Advisory Database

The query executor would panic when executing a query containing a call to a built-in SurrealDB function that did not exist. This could occur accidentally in situations where the version of the SurrealDB client was newer than the SurrealDB server or when a pre-parsed query was provided to the server via a newer version of the SurrealDB SDK.

Impact

A client that is authorized to run queries in a SurrealDB server is able to craft and execute a pre-parsed query invoking a nonexistent built-in function, which will cause a panic. This will crash the server, leading to denial of service.

Patches
  • Version 1.2.0 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)

Versiones de SurrealDB anteriores a la 1.2.0 contienen una vulnerabilidad de excepción no capturada en el ejecutor de consultas al procesar llamadas a funciones integradas inexistentes. Clientes autorizados pueden elaborar consultas pre-analizadas invocando funciones inexistentes para desencadenar un pánico que bloquea el servidor.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-58365 changed 2026-07-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-6wr5-jmpr-mjcx changed 2026-07-19CC-BY-4.0
NVDCVE-2024-58365 changed 2026-10-27Public domain