What’s Vulnerable › Vulnerabilities
CVE-2024-58362: SurrealDB before 1.5.5 Query Injection via RPC API
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-18 · updated 2026-10-27
- Weakness: CWE-75
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).
Affected products
- surrealdb: before 1.5.5; 2.0.0-beta1, 2.0.0-beta2 — fixed in 1.5.5
How to fix
Upgrade to a fixed version: surrealdb 1.5.5. Check the vendor advisory for mitigations.
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr
- https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api
Get alerted when CVE-2024-58362 or the next vulnerability affects your stack