{"id":"CVE-2024-58362","summary":"SurrealDB before 1.5.5 Query Injection via RPC API","details":"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).","aliases":["GHSA-64f8-pjgr-9wmr"],"modified":"2026-07-23T03:56:09.648757227Z","published":"2026-07-18T13:10:04.263Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-75"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58362.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58362.json"},{"type":"ADVISORY","url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58362"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/surrealdb/surrealdb","events":[{"introduced":"0"},{"fixed":"bd0b6a2b882a2a28aae88865c1278311f015a574"},{"fixed":"590446c8aa5335917341f343170f81bfe29e3b0b"},{"introduced":"bf788c2987a60c46911f15eb67ed99e69dd6cd9c"},{"fixed":"d32110b46ddb9af09af19aadb8601c7df623b2b7"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.5.5"},{"fixed":"1.5.2"},{"introduced":"2.0.0-beta.1"},{"fixed":"2.0.0-beta.3"}],"source":"AFFECTED_FIELD"}}],"versions":["v1.5.4","v2.0.0-beta.2","v2.0.0-beta.1","v1.5.3","v1.0.0","v1.0.0-beta.12","v1.0.0-beta.11","v1.0.0-beta.10","v1.0.0-beta.9+20230402","v1.0.0-beta.9","v1.0.0-beta.8","v1.0.0-beta.7","v1.0.0-beta.6","v1.0.0-beta.5","v1.0.0-beta.4","v1.0.0-beta.3","v1.0.0-beta.2","v1.0.0-beta.1","v0.3.0","v0.1.30","v0.1.29","v0.1.28","v0.1.27","v0.1.26","v0.1.25","v0.1.24","v0.1.23","v0.1.22","v0.1.21","v0.1.20","v0.1.19","v0.1.18","v0.1.17","v0.1.16","v0.1.15","v0.1.14","v0.1.13","v0.1.12","v0.1.11","v0.1.10","v0.1.9","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58362.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}