CVE-2024-58362

published 18 Jul 2026 · updated 28 Jul 2026

SurrealDB before 1.5.5 Query Injection via RPC API

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.5.2, 1.5.5 and 2.0.0-beta.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
surrealdb<1.5.2, <1.5.5, >=2.0.0-beta.1 <2.0.0-beta.31.5.2, 1.5.5, 2.0.0-beta.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-58362 severity on Zeptric[![CVE-2024-58362](https://zeptric.io/badge/cve/CVE-2024-58362.svg)](https://zeptric.io/cve/CVE-2024-58362)