{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-58362","id":"CVE-2024-58362","title":"SurrealDB before 1.5.5 Query Injection via RPC API","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","descriptionLong":"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","updated":"2026-10-29T02:30:26.169083480Z","reserved":"2026-07-18T12:40:52.916Z","status":"Analyzed","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":8.7,"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","rating":"high","source":"VulnCheck"},"metrics":[{"version":"4.0","score":8.7,"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","rating":"high","source":"VulnCheck"},{"version":"4.0","score":8.7,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"vulncheck.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"VulnCheck"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"vulncheck.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["surrealdb"],"affectedProducts":[{"vendor":"surrealdb","product":"surrealdb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"1.5.5"},{"version":"1.5.5","status":"unaffected","versionType":"semver"},{"version":"2.0.0-beta.1","status":"affected","versionType":"semver","lessThan":"2.0.0-beta.3"},{"version":"2.0.0-beta.3","status":"unaffected","versionType":"semver"}],"platforms":[]},{"vendor":"surrealdb","product":"surrealdb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"1.5.2"},{"version":"1.5.2","status":"unaffected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"surrealdb","purl":"pkg:cargo/surrealdb","ranges":["<1.5.5",">=2.0.0-beta.1 <2.0.0-beta.3"],"fixed":["1.5.5","2.0.0-beta.3"],"advisory":"GHSA-64f8-pjgr-9wmr"},{"ecosystem":"crates.io","name":"surrealdb-core","purl":"pkg:cargo/surrealdb-core","ranges":["<1.5.2"],"fixed":["1.5.2"],"advisory":"GHSA-64f8-pjgr-9wmr"}],"cwes":["CWE-75"],"aliases":["GHSA-64f8-pjgr-9wmr"],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr","tags":["vendor-advisory","Vendor Advisory","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api","tags":["third-party-advisory","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58362.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58362","tags":["advisory"]},{"url":"https://github.com/surrealdb/surrealdb/commit/b7583a653a2c495a60630dffd663f506426db330","tags":["web"]},{"url":"https://github.com/surrealdb/surrealdb/commit/eab7ef5354168d4039f7f7b77042c99a52f770a6","tags":["web"]},{"url":"https://github.com/surrealdb/surrealdb","tags":["package"]},{"url":"https://surrealdb.com/docs/surrealdb/integration/rpc#signin","tags":["web"]},{"url":"https://surrealdb.com/docs/surrealdb/integration/rpc#signup","tags":["web"]},{"url":"https://surrealdb.com/docs/surrealdb/security/authentication#record-users","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00636,"epssPercentile":0.5131,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-58362","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58362","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-58362","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-64f8-pjgr-9wmr","ok":true,"note":"GHSA-64f8-pjgr-9wmr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-58362","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}