surrealdb
crates.io54 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 2
- 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 and 2.0.0-alpha.1 before 2.0.0-alpha.6 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 unr…
- 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-121417HIGHCVSS 7.8EG 7.8fixed in 3.3.02026-11-03
SurrealDB before 3.3.0 contains a use-after-free vulnerability in surrealdb-core KV backends that pass borrowed transaction state into affinitypool::spawn_local closures relying on future Drop for safety. Rust embedders that leak a dispatc…
- 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-63309MEDIUMCVSS 4.3EG 4.3fixed in 3.1.52026-07-17
SurrealDB before 3.1.5 fail to apply field-level SELECT permissions to ORDER BY clauses, allowing authenticated users to leak the relative ordering of restricted field values. Attackers can issue ORDER BY queries on indexed restricted fiel…
- 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-63737MEDIUMCVSS 6.5EG 6.5fixed in 3.1.52026-07-20
SurrealDB versions before 3.1.5 contain a denial of service vulnerability where authenticated users can crash the server with queries containing long chains of operators. Attackers can submit queries with tens of thousands of chained opera…
- 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-63739HIGHCVSS 7.7EG 7.7fixed in 3.1.52026-07-20
SurrealDB before 3.1.5 contains an arbitrary file read vulnerability in the DEFINE ANALYZER mapper filter that allows database users with EDITOR or OWNER roles to read files accessible to the SurrealDB process. Attackers can specify arbitr…
- 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-63741MEDIUMCVSS 6.5EG 6.5fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 fail to validate DEFINE NAMESPACE or DEFINE DATABASE permissions when processing USE NS and USE DB statements. Unauthenticated attackers can create arbitrary namespaces and databases by issuing USE commands,…
- CVE-2026-63742MEDIUMCVSS 4.3EG 4.3fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain a field-level SELECT permission bypass vulnerability in indexed COUNT fast paths. Attackers can execute COUNT queries on indexed fields with field-level SELECT restrictions to confirm or recover rest…
- 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-63744MEDIUMCVSS 4.1EG 4.1fixed in 3.1.52026-07-20
SurrealDB before 3.1.5 contains a server-side request forgery vulnerability in the JWKS fetcher that follows HTTP redirects without re-validating redirect targets against network capabilities. Attackers with Owner role can configure a JWKS…
- CVE-2026-63745MEDIUMCVSS 5.4EG 5.4fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain an authorization bypass vulnerability where authenticated users can spoof composite record-id field values by writing to editable body fields. Attackers can bypass permission rules that gate access o…
- 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-63747HIGHCVSS 7.5EG 7.5fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain a denial of service vulnerability in the RPC use handler that panics when db is set without a namespace. Unauthenticated attackers can send a malformed WebSocket message to the /rpc endpoint to crash…
- 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-63749MEDIUMCVSS 4.3EG 4.3fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain an authentication bypass vulnerability in LIVE SELECT subscriptions where permission expressions referencing $value, $before, $after, or $event are evaluated against attacker-controlled bindings inst…
- CVE-2026-63750HIGHCVSS 7.5EG 7.5fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 fail to apply the SURREAL_WEBSOCKET_MAX_MESSAGE_SIZE limit to anonymous /sql WebSocket connections, allowing attackers to buffer unbounded frames in the per-connection read buffer. Attackers can stream WebSo…
- 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-63752MEDIUMCVSS 4.3EG 4.3fixed in 3.1.02026-07-20
SurrealDB before 3.1.0 contains an authorization bypass vulnerability in the RELATE statement that allows authenticated users with CREATE permission to overwrite existing edge records without UPDATE permission. Attackers can issue a RELATE…
- CVE-2026-63753MEDIUMCVSS 4.3EG 4.3fixed in 3.1.02026-07-20
SurrealDB before 3.1.0 fails to refresh authentication state in LIVE SELECT subscriptions when session state changes. Attackers can continue receiving real-time notifications under revoked or expired session credentials until the connectio…
- CVE-2026-63754MEDIUMCVSS 6.5EG 6.5fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain a denial of service vulnerability where malicious LIVE queries with WHERE clauses that evaluate to errors cause all CREATE, UPDATE, and DELETE operations on the watched table to fail. An authenticate…
- 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-63756HIGHCVSS 8.1EG 8.1fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain a time-of-check/time-of-use race condition in the HTTP /rpc endpoint that allows unauthenticated requests to inherit authenticated session state. Unauthenticated attackers can send concurrent request…
- CVE-2026-63757HIGHCVSS 8.8EG 8.8fixed in 3.1.02026-07-20
SurrealDB versions before 3.1.0 contain a session hijacking vulnerability where the HTTP /rpc sessions method returns attached session UUIDs without authentication and accepts arbitrary session fields with no ownership verification. Unauth…
- 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-63759MEDIUMCVSS 6.5EG 6.5fixed in 3.1.02026-07-20
SurrealDB before 3.1.0 fails to enforce recursion depth limits in the type/kind parser when processing nested type annotations. Authenticated attackers can send queries with deeply nested type annotations to exhaust server memory and crash…
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 →