CVE-2024-58362 Details
Description
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 SIGNIN or SIGNUP query and the RPC API is exposed to untrusted users, an unauthenticated attacker can encode a binary object containing a subquery using the bincode serialization format and supply it in place of credentials. The subquery is then executed within the database owner's SIGNIN/SIGNUP query under a system user session with the editor role, allowing the attacker to select, create, update, and delete non-IAM resources (though not view the query results directly, and not affect IAM resources, which require the owner role).
A vulnerability exists in SurrealDB versions prior to 1.5.5 and 2.0.0-beta prior to 2.0.0-beta.3, where the RPC API's sign-in and sign-up operations accept arbitrary objects without proper validation for non-computed values. This flaw allows an unauthenticated attacker to encode a binary object containing a subquery using the bincode serialization format and replace the credentials with it. The injected subquery is executed within the context of the database owner's sign-in or sign-up query, under a system user session with editor privileges. As a result, the attacker can manipulate non-IAM resources by selecting, creating, updating, or deleting them, although they cannot directly view the query results or affect IAM resources, which require owner privileges.
Users can update to SurrealDB versions 1.5.5 or 2.0.0-beta.3 or later, where this vulnerability has been patched. For those unable to update, it is recommended to restrict access to the SurrealDB RPC API, allowing only requests with the 'application/json' content type to the '/rpc' endpoint. If the RPC API is not used or only by trusted clients, access to the '/rpc' endpoint can be restricted to prevent exploitation. Alternatively, record access methods that include 'SIGNIN' or 'SIGNUP' queries may be temporarily removed to avoid potential attacks.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr | [email protected] | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-75 | Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| surrealdb surrealdb | < 1.5.5 2.0.0 beta1 2.0.0 beta2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 27, 2026 | CVE Translated | [email protected] |
| Aug 12, 2026 | Initial Analysis | [email protected] |
| Jul 20, 2026 | CVE Modified | [email protected] |
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2026 | New CVE Received | [email protected] |