{"id":"CVE-2024-58362","aliases":["GHSA-64f8-pjgr-9wmr"],"url":"https://o3.security/vulnerability/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).","published":"2026-07-18T13:10:04.263Z","modified":"2026-08-14T04:03:36.454558585Z","cvss":null,"epss":{"score":0.00636,"percentile":0.48904,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"surrealdb","fixedVersion":"1.5.5"},{"ecosystem":"crates.io","name":"surrealdb-core","fixedVersion":"1.5.2"},{"ecosystem":"crates.io","name":"surrealdb","fixedVersion":"2.0.0-beta.3"}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-14T04:03:36.454558585Z"}}