CVE-2024-58362

SurrealDB before 1.5.5 Query Injection via RPC API

State
Published
Severity
8.7 High
Published
Jul 18, 2026
Updated
Jul 28, 2026
Reserved
Jul 18, 2026

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
4.08.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HVulnCheck

Weaknesses

  • CWE-75 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)

Affected Products

ProductVersions
surrealdbsurrealdb
  • before 1.5.5Affected
  • 1.5.5Not affected
  • 2.0.0-beta.1 to before 2.0.0-beta.3Affected
  • 2.0.0-beta.3Not affected
surrealdbsurrealdb
  • before 1.5.2Affected
  • 1.5.2Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.