---
id: CVE-2024-58362
title: >-
  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
summary: >-
  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 S…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-75
published: '2026-07-18'
updated: '2026-07-18'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-58362'
references:
  - url: >-
      https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-07-19T03:27:58.367Z'
epss: 0.00636
epssPercentile: 0.48225
---

## Overview

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

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
