SurrealDB versions before 2.0.4 have a vulnerability in the parser error rendering code that causes an uncaught exception when processing empty… (CVE-2024-58361)
SurrealDB versions before 2.0.4 have a vulnerability in the parser error rendering code that causes an uncaught exception when processing empty strings. Authorized clients can send malformed queries with empty string conversions to record, duration, or datetime types, triggering a panic during error rendering and crashing the server.
AI Analysis
Technical Summary
CVE-2024-58361 affects SurrealDB versions prior to 2.0.4. The vulnerability arises from an uncaught exception in the parser's error rendering logic when handling empty strings converted to record, duration, or datetime types. This can be exploited by authorized clients to execute malformed queries that cause the server to panic and crash, resulting in a denial of service condition. The issue is categorized under CWE-248 (Uncaught Exception).
Potential Impact
An attacker with authorized access can cause the SurrealDB server to crash by sending specially crafted malformed queries involving empty string conversions. This results in a denial of service due to server panic during error rendering. There is no indication of data breach or privilege escalation from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict query inputs to prevent malformed empty string conversions or limit access to trusted clients to reduce risk of exploitation.
SurrealDB versions before 2.0.4 have a vulnerability in the parser error rendering code that causes an uncaught exception when processing empty… (CVE-2024-58361)
Description
SurrealDB versions before 2.0.4 have a vulnerability in the parser error rendering code that causes an uncaught exception when processing empty strings. Authorized clients can send malformed queries with empty string conversions to record, duration, or datetime types, triggering a panic during error rendering and crashing the server.
CVSS v4.0
Affected software
pkg:github/surrealdb/surrealdbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-58361 affects SurrealDB versions prior to 2.0.4. The vulnerability arises from an uncaught exception in the parser's error rendering logic when handling empty strings converted to record, duration, or datetime types. This can be exploited by authorized clients to execute malformed queries that cause the server to panic and crash, resulting in a denial of service condition. The issue is categorized under CWE-248 (Uncaught Exception).
Potential Impact
An attacker with authorized access can cause the SurrealDB server to crash by sending specially crafted malformed queries involving empty string conversions. This results in a denial of service due to server panic during error rendering. There is no indication of data breach or privilege escalation from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict query inputs to prevent malformed empty string conversions or limit access to trusted clients to reduce risk of exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-m66w-p9jp-37jq
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2024-58361"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a5ba17f44ab8fbf7c789e70
Added to database: 07/18/2026, 15:53:35 UTC
Last enriched: 07/18/2026, 16:23:30 UTC
Last updated: 07/18/2026, 17:28:14 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.