CVE-2024-58362

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).
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
cpe:2.3:a:surrealdb:surrealdb:2.0.0:beta1:*:*:*:*:*:*
cpe:2.3:a:surrealdb:surrealdb:2.0.0:beta2:*:*:*:*:*:*

History

No history.

Information

Published : 2026-07-18 14:17

Updated : 2026-08-12 18:40


NVD link : CVE-2024-58362

Mitre link : CVE-2024-58362

CVE.ORG link : CVE-2024-58362


JSON object : View

Products Affected

surrealdb

  • surrealdb
CWE
CWE-75

Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)