PT-2024-40433 · Surrealdb · Surrealdb
Published
2024-10-08
·
Updated
2024-10-08
CVSS v4.0
7.1
High
| Vector | AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
SurrealDB versions prior to 2.0.4
Description
The issue occurs when the parser fails to handle the conversion of an empty string to a SurrealDB value, such as when casting to a
record, duration, or datetime, or when parsing an empty string to JSON. This can cause a panic in the error rendering code, leading to a denial of service. An authorized client can execute a malformed query that fails to parse, causing the server to crash.Recommendations
For versions prior to 2.0.4, update to version 2.0.4 or later to resolve the issue.
As a temporary workaround, consider limiting the ability of untrusted clients to run arbitrary SurrealQL queries.
Additionally, ensure that the SurrealDB process is configured to automatically restart after a crash to minimize the impact of the denial of service.
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Surrealdb