surrealdb
crates.io26 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.8✓ Fixed 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-58356LOWCVSS 2.3EG 2.3✓ Fixed 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.5✓ Fixed 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.9✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.8✓ Fixed in 2.0.0-beta.32026-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.3✓ Fixed in 2.0.0-alpha.62026-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.5✓ Fixed 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.5✓ Fixed 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.5EG 8.5✓ Fixed 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-58367HIGHCVSS 7.1EG 7.1✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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-71391HIGHCVSS 7.1EG 7.1✓ Fixed in 2.0.52026-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-71392CRITICALCVSS 9.4EG 9.4✓ Fixed in 2.0.52026-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.0EG 6.0✓ Fixed in 2.0.52026-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-71394LOWCVSS 2.3EG 2.3✓ Fixed in 2.1.52026-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-71395HIGHCVSS 7.1EG 7.1✓ Fixed in 2.0.52026-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-71396LOWCVSS 2.3EG 2.3✓ Fixed in 2.1.52026-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-71397HIGHCVSS 7.1EG 7.1✓ Fixed in 2.0.52026-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-71398MEDIUMCVSS 5.8EG 5.8✓ Fixed in 2.0.52026-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.4✓ Fixed 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-63762MEDIUMCVSS 6.5EG 6.5✓ Fixed in 3.0.0-beta.32026-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.8✓ Fixed in 3.0.0-beta.32026-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.
Start Free Scan →