surrealdb
crates.io37 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting surrealdbpage 1 of 1
- CVE-2023-54366HIGHCVSS 8.8EG 8.8fixed in 1.0.12026-07-18
SurrealDB before 1.0.1 sets default table permissions to FULL instead of NONE, allowing SELECT, CREATE, UPDATE, and DELETE operations on tables without explicit permissions. Attackers with database access or unauthenticated users on public…
- CVE-2024-58356MEDIUMCVSS 6.3EG 6.3fixed in 2.1.42026-07-18
SurrealDB before 2.1.4 silently fails to overwrite table definitions when the DEFINE TABLE ... OVERWRITE clause is used on tables defined with TYPE RELATION. Because table definitions include the PERMISSIONS clause, an attempt to tighten a…
- CVE-2024-58357MEDIUMCVSS 6.5EG 6.5fixed in 2.1.02026-07-18
SurrealDB versions before 2.1.0 contain an uncaught exception vulnerability in the rand::time() function that panics when unwrap is called on a None result from timestamp_opt. Authorized clients can repeatedly invoke rand::time() to reliab…
- CVE-2024-58358MEDIUMCVSS 4.9EG 4.9fixed in 2.1.02026-07-18
SurrealDB versions before 2.1.0 contain a denial of service vulnerability in role conversion that allows privileged owner users to define users with nonexistent roles. Attackers can trigger an uncaught panic by signing in with a user assig…
- CVE-2024-58359MEDIUMCVSS 6.5EG 6.5fixed in 2.1.02026-07-18
SurrealDB versions before 2.1.0 contain a denial of service vulnerability in the sorting mechanism when using ORDER BY rand() clause. Authorized clients can execute queries with ORDER BY rand() to trigger a panic in the sorting function, c…
- CVE-2024-58361MEDIUMCVSS 6.5EG 6.5fixed in 2.0.42026-07-18
SurrealDB versions before 2.0.4 contain an uncaught exception handling vulnerability in the parser error rendering code when processing empty strings. Authorized clients can execute malformed queries with empty string conversions to record…
- CVE-2024-58362HIGHCVSS 8.8EG 8.8fixed in 1.5.5 or 2.0.0-beta.3, by version range2026-07-18
SurrealDB before 1.5.5 (and 2.0.0-beta before 2.0.0-beta.3) accepts an arbitrary object in the signin and signup operations of the RPC API without recursively validating it for non-computed values. When a record access method defines a SIG…
- CVE-2024-58363MEDIUMCVSS 6.3EG 6.3fixed in 1.5.4 or 2.0.0-alpha.6, by version range2026-07-18
SurrealDB before 1.5.4 fails to properly validate authentication when a scope user switches databases using the USE clause or use method. Attackers with an authenticated session can impersonate an unrelated user in a different database if …
- CVE-2024-58364MEDIUMCVSS 6.5EG 6.5fixed in 1.2.12026-07-18
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 …
- CVE-2024-58365MEDIUMCVSS 6.5EG 6.5fixed in 1.2.02026-07-18
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 tr…
- CVE-2024-58366HIGHCVSS 8.8EG 8.8fixed in 1.1.12026-07-18
SurrealDB before 1.1.1 contains a format string vulnerability in the rquickjs Exception::throw_type function when scripting is enabled. Attackers with scripting privileges can supply format string sequences in error inputs to read arbitrar…
- CVE-2024-58367MEDIUMCVSS 6.5EG 6.5fixed in 2.0.42026-07-18
SurrealDB versions before 2.0.4 fail to properly enforce field permissions during SELECT, UPDATE, and DELETE operations, allowing authorized users to access unauthorized field values through various query techniques. Attackers can exploit …
- CVE-2024-58368HIGHCVSS 7.5EG 7.5fixed in 1.1.02026-07-18
SurrealDB versions before 1.1.0 fail to properly parse the ID, DB, and NS headers in HTTP REST API requests containing special characters. Unauthenticated attackers can send crafted HTTP requests with malformed header values to trigger an …
- CVE-2024-58369MEDIUMCVSS 6.5EG 6.5fixed in 1.1.12026-07-18
SurrealDB versions before 1.1.1 fail to properly validate invocation of custom parameters and functions at root or namespace levels, causing server panic. Authorized clients can invoke these entities at unsupported levels to crash the Surr…
- CVE-2024-58370MEDIUMCVSS 6.5EG 6.5fixed in 1.1.02026-07-18
SurrealDB versions before 1.1.0 fail to enforce recursion depth limits when parsing nested SurrealQL statements including IF, RELATE, and attribute access idioms. Authorized attackers can submit queries with excessive nesting depth to caus…
- CVE-2025-71391MEDIUMCVSS 6.5EG 6.5fixed in 2.2.2, 2.1.5 or 2.0.5, by version range2026-07-18
SurrealDB versions before 2.2.2 contain an uncaught exception vulnerability in the net module that allows authenticated users to crash the database. Attackers can send crafted HTTP queries containing null bytes to the /sql endpoint, causin…
- CVE-2025-71392HIGHCVSS 8.0EG 8.0fixed in 2.2.2, 2.1.5 or 2.0.5, by version range2026-07-18
SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 fails to properly escape table and field names in the command-line export command. An authenticated System User with OWNER or EDITOR roles can create tables or fields with …
- CVE-2025-71393MEDIUMCVSS 6.5EG 6.5fixed in 2.2.2, 2.1.5 or 2.0.5, by version range2026-07-18
SurrealDB before 2.2.2 with scripting enabled fails to properly enforce recursion limits when native functions contain embedded JavaScript that issues new queries. Authenticated attackers can bypass the recursion limit by chaining native a…
- CVE-2025-71394MEDIUMCVSS 4.3EG 4.3fixed in 2.2.2 or 2.1.5, by version range2026-07-18
SurrealDB versions before 2.2.2 contain a local file read vulnerability in the DEFINE ANALYZER statement that allows authenticated users to read arbitrary files on the file system. Attackers with root, namespace, or database level privileg…
- CVE-2025-71395MEDIUMCVSS 6.5EG 6.5fixed in 2.2.2, 2.1.5 or 2.0.5, by version range2026-07-18
SurrealDB versions before 2.2.2 contain a memory exhaustion vulnerability in the string::replace function that fails to restrict resulting string length when using regex patterns. An authenticated attacker can craft a malicious query to ex…
- CVE-2025-71396MEDIUMCVSS 6.5EG 6.5fixed in 2.2.2, 2.0.5 or 2.1.5, by version range2026-07-18
SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 does not enforce a default execution-time limit on embedded JavaScript scripting functions when the scripting capability is explicitly enabled (via --allow-scripting or --a…
- CVE-2025-71397MEDIUMCVSS 6.5EG 6.5fixed in 2.2.2, 2.1.5 or 2.0.5, by version range2026-07-18
SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 allows authenticated users with OWNER or EDITOR permissions (at the root, namespace, or database level) to define custom database functions via DEFINE FUNCTION using nested…
- CVE-2025-71398HIGHCVSS 7.6EG 7.6fixed in 2.2.2, 2.1.5 or 2.0.5, by version range2026-07-18
SurrealDB before 2.2.2 fails to validate HTTP redirects in http functions, allowing authenticated users to bypass deny-net restrictions by redirecting to blocked IP addresses. Attackers can host a public server that redirects to denied net…
- CVE-2026-49997MEDIUMCVSS 5.4EG 5.4fixed in 3.1.02026-07-01
SurrealDB is a scalable, distributed, collaborative, document-graph database for the realtime web. Prior to 3.1.0, Document::purge_edges in surrealdb/core/src/doc/delete.rs automatically removed graph edge records with permissions disabled…
- CVE-2026-63735HIGHCVSS 8.1EG 8.1fixed in 3.2.02026-07-20
SurrealDB versions before 3.2.0 fail to validate namespace and database scope in custom API routes, allowing authenticated users to invoke endpoints in different namespaces/databases. Attackers with valid credentials for any namespace/data…
- CVE-2026-63738MEDIUMCVSS 4.3EG 4.3fixed in 3.1.52026-07-20
SurrealDB versions 3.1.0 before 3.1.5 fail to enforce field-level SELECT permissions when records are accessed through graph-edge or back-reference traversals. Attackers with table-level SELECT access can read field values hidden by field-…
- CVE-2026-63740MEDIUMCVSS 6.5EG 6.5fixed in 3.1.42026-07-20
SurrealDB versions before 3.1.4 fail to properly enforce SELECT permissions on array elements (field.*) for record users, leaking denied array elements instead of hiding them. Attackers with record scope access can read array elements that…
- CVE-2026-63743MEDIUMCVSS 6.4EG 6.4fixed in 3.1.02026-07-20
SurrealDB before 3.1.0 contains a capability bypass vulnerability in HTTP redirect handling that allows authenticated users to circumvent port-scoped --deny-net rules. Attackers can chain an HTTP redirect from an allowed hostname to a deni…
- CVE-2026-63746MEDIUMCVSS 6.5EG 6.5fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 fail to enforce table SELECT permissions when traversing graph edges or back-references. Authenticated users can read records from any table reachable through graph edges regardless of the target table's PER…
- CVE-2026-63748MEDIUMCVSS 4.3EG 4.3fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain an information disclosure vulnerability where authenticated users with UPDATE access can read field values hidden by field-level SELECT permissions through error messages. Attackers can trigger arith…
- CVE-2026-63751MEDIUMCVSS 4.3EG 4.3fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain a field-level permission bypass vulnerability in JSON Patch operations that allows authenticated users to read protected fields. Attackers can use UPDATE PATCH with an empty from pointer in copy or m…
- CVE-2026-63755MEDIUMCVSS 6.5EG 6.5fixed in 3.1.02026-07-20
SurrealDB before 3.1.0 evaluates user-supplied WHERE clauses in SELECT statements (and SET/MERGE/CONTENT/PATCH clauses in UPDATE, UPSERT, INSERT ON DUPLICATE KEY UPDATE, and RELATE update-variant statements) against full record data before…
- CVE-2026-63758MEDIUMCVSS 5.4EG 5.4fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain an authorization bypass vulnerability in the KILL statement that allows authenticated database users to terminate other users' LIVE SELECT subscriptions. Attackers can issue KILL statements with targ…
- CVE-2026-63760HIGHCVSS 7.5EG 7.5fixed in 3.1.02026-07-20
SurrealDB before 3.1.0 fails to enforce the configured recursion depth limit in the value and JSON parser when processing nested braces, brackets, or parentheses. Unauthenticated attackers can send deeply nested JSON payloads to the WebSoc…
- CVE-2026-63761MEDIUMCVSS 4.3EG 4.3fixed in 3.1.02026-07-20
SurrealDB before 3.1.0 silently substitutes the ES384 algorithm when a JWT access method is configured with ALGORITHM ES512 (DEFINE ACCESS ... TYPE JWT ALGORITHM ES512), because the underlying jsonwebtoken crate (v10.x) has no ES512 varian…
- CVE-2026-63762MEDIUMCVSS 6.5EG 6.5fixed in 2.6.1 or 3.0.0-beta.3, by version range2026-07-20
SurrealDB before v2.6.1 (and before v3.0.0-beta.3) contains a denial of service vulnerability in its embedded JavaScript scripting engine, which is enabled via the --allow-scripting capability (disabled by default). Any user able to execut…
- CVE-2026-63763HIGHCVSS 8.8EG 8.8fixed in 2.5.0 or 3.0.0-beta.3, by version range2026-07-20
SurrealDB before 2.5.0 and before 3.0.0-beta.3 contains a confused deputy privilege escalation vulnerability. Unprivileged users (e.g., those with the database editor role) can create or modify fields containing futures, functions, or clos…
Check whether surrealdb is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for surrealdb CVEs against the assets you own.
Book a Demo →