{"cve":"CVE-2024-58362","nvd":{"published":"2026-07-18T14:17:09.047","modified":"2026-10-27T18:10:00.130","status":"Analyzed","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).","cvss_v4":{"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","score":8.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-75"],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr","https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api"],"products":["surrealdb:surrealdb"],"source":"nvd","synced_at":"2026-10-27T18:39:43.087796372+00:00"},"epss":{"cve":"CVE-2024-58362","score":0.00636,"percentile":0.50297,"date":"2026-10-27"},"kev":null,"osv":[{"id":"GHSA-64f8-pjgr-9wmr","url":"https://osv.dev/vulnerability/GHSA-64f8-pjgr-9wmr","summary":"Untrusted Query Object Evaluation in RPC API","modified":"2026-07-19T03:56:46.772752333Z","packages":[{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":["<1.5.5"],"fixed":["1.5.5"]},{"ecosystem":"crates.io","name":"surrealdb-core","purl":"pkg:cargo/surrealdb-core","ranges":["<1.5.2"],"fixed":["1.5.2"]},{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":[">=2.0.0-beta.1 <2.0.0-beta.3"],"fixed":["2.0.0-beta.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}