{"id":"CVE-2024-58364","aliases":["CVE-2024-58364","GHSA-8xff-473h-f863"],"related":[],"kind":"vulnerability","state":"published","title":"SurrealDB before 1.2.1 Denial of Service via Parsing Error","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The span rendering would panic when handling failed parsing of queries where the error occurred on a line terminator character.\n\n### Impact\n\nA 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.\n\n### Patches\n\n- Version 1.2.1 and later are not affected by this issue.\n\n### Workarounds\n\nConcerned 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.\n\n### References\n\n- #3527\n- https://github.com/StarlaneStudios/Surrealist/issues/177","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-02-21T00:00:54.000Z","modified":"2026-10-27T18:10:00.130Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.2.1","status":"affected"},{"type":"semver","version":"1.2.1","status":"unaffected"}],"vendor":"surrealdb","product":"surrealdb","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.1"}],"ecosystem":"crates.io","package":"surrealdb","purl":"pkg:cargo/surrealdb","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.1"}],"vendor":"surrealdb","product":"surrealdb","cpe":"cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-8xff-473h-f863","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-parsing-error","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/StarlaneStudios/Surrealist/issues/177","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/surrealdb/surrealdb","tags":["package"],"sources":["ghsa"]}],"credits":["Cheyenne1025"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-22T18:56:40.455Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58364","url":"https://www.cve.org/CVERecord?id=CVE-2024-58364","licence":"CVE Terms of Use","modified":"2026-07-28T01:47:51.243Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xff-473h-f863","url":"https://github.com/advisories/GHSA-8xff-473h-f863","licence":"CC-BY-4.0","modified":"2026-07-19T03:56:47.957Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58364","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58364","licence":"Public domain","modified":"2026-10-27T18:10:00.130Z"}],"updatedAt":"2026-11-25T22:58:53.050Z","epss":{"score":0.00254,"percentile":0.18131,"date":"2026-12-01T12:00:22.000Z"}}