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 package | Versions | Reported by |
|---|---|---|
| surrealdb surrealdb | before 1.2.0 Not affected: 1.2.0 | CVE List, NVD |
| surrealdb (crates.io) | before 1.2.0 | 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.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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58365 changed 2026-07-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6wr5-jmpr-mjcx changed 2026-07-19 | CC-BY-4.0 |
| NVD | CVE-2024-58365 changed 2026-10-27 | Public domain |