CVE-2024-58362
HIGH 8.7CVSS 4.0Untrusted Query Object Evaluation in RPC API
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
- 18 Jul 2026
- Last modified
- 27 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-75
- Also known as
- GHSA-64f8-pjgr-9wmrGHSA-xw2c-hrr9-4xwr
- Sources
- NVDJSONOSV GHSA-64f8-pjgr-9wmrJSONOSV GHSA-xw2c-hrr9-4xwrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
< 1.5.5 | 1.5.5 |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:2.0.0:beta1:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:2.0.0:beta2:*:*:*:*:*:* |
= 2.0.0 | |
| OSV | crates.io | surrealdb | < 1.5.5 | 1.5.5 |
| OSV | crates.io | surrealdb-core | < 1.5.2 | 1.5.2 |
| OSV | crates.io | surrealdb | >= 2.0.0-beta.1, < 2.0.0-beta.3 | 2.0.0-beta.3 |
| OSV | crates.io | surrealdb | all versions |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api · Third Party Advisory, WEB
- https://github.com/surrealdb/surrealdb/commit/b7583a653a2c495a60630dffd663f506426db330 · WEB
- https://github.com/surrealdb/surrealdb/commit/eab7ef5354168d4039f7f7b77042c99a52f770a6 · WEB
- https://github.com/surrealdb/surrealdb · PACKAGE
- https://surrealdb.com/docs/surrealdb/integration/rpc#signin · WEB
- https://surrealdb.com/docs/surrealdb/integration/rpc#signup · WEB
- https://surrealdb.com/docs/surrealdb/security/authentication#record-users · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-58362 · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 18 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Sep 2024)