{"id":"CVE-2024-58362","published":"2026-07-18T13:10:04Z","modified":"2026-07-28T01:47:49Z","title":"SurrealDB before 1.5.5 Query Injection via RPC API","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00636,"percentile":0.51451,"provenance":"source"},"cwes":[{"id":"CWE-75","name":"Failure to Sanitize Special Elements into a Different Plane"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api","tags":["third-party-advisory"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":10.29},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["< 1.5.5",">= 2.0.0-beta.1, < 2.0.0-beta.3"]},{"vendor":"surrealdb","product":"surrealdb","versions":["< 1.5.2"]}],"fixedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["1.5.5","2.0.0-beta.3"]},{"vendor":"surrealdb","product":"surrealdb","versions":["1.5.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-20T17:26:21.922837Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-55678","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-surrealdb-cve-2024-58362","children":[{"from":"CVE-2024-58362","to":"CVE-2024-58367","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/src/err/mod.rs","core/src/sql/value/value.rs"],"commits":["https://github.com/surrealdb/surrealdb/commit/b7583a653a2c495a60630dffd663f506426db330","https://github.com/surrealdb/surrealdb/commit/eab7ef5354168d4039f7f7b77042c99a52f770a6","https://github.com/surrealdb/surrealdb/commit/439ab99e15314ec5cf87047bf58246db646e3f8c","https://github.com/surrealdb/surrealdb/commit/c382fa158dc84b329328606f663efe574f102a7d"],"basis":"rarely changed file"}]}]}}