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

27 Oct 2026, 18:10

Type Values Removed Values Added
Summary
  • (es) SurrealDB antes de 1.5.5 (y 2.0.0-beta antes de 2.0.0-beta.3) acepta un objeto arbitrario en las operaciones de inicio de sesión y registro de la API RPC sin validarlo recursivamente para valores no calculados. Cuando un método de acceso a registros define una consulta SIGNIN o SIGNUP y la API RPC está expuesta a usuarios no confiables, un atacante no autenticado puede codificar un objeto binario que contiene una subconsulta utilizando el formato de serialización bincode y proporcionarlo en lugar de las credenciales. La subconsulta se ejecuta entonces dentro de la consulta SIGNIN/SIGNUP del propietario de la base de datos bajo una sesión de usuario del sistema con el rol de editor, permitiendo al atacante seleccionar, crear, actualizar y eliminar recursos que no son IAM (aunque no puede ver los resultados de la consulta directamente, y no afecta a los recursos IAM, que requieren el rol de propietario).

12 Aug 2026, 18:40

Type Values Removed Values Added
First Time Surrealdb
Surrealdb surrealdb
CPE cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
cpe:2.3:a:surrealdb:surrealdb:2.0.0:beta2:*:*:*:*:*:*
cpe:2.3:a:surrealdb:surrealdb:2.0.0:beta1:*:*:*:*:*:*
References () https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr - () https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr - Vendor Advisory
References () https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api - () https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api - Third Party Advisory

18 Jul 2026, 14:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-18 14:17

Updated : 2026-10-27 18:10


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)