# CVE-2024-58362: SurrealDB before 1.5.5 Query Injection via RPC API

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 45% of CVEs (2026-11-30)
- Published: 2024-09-11T19:20:07.000Z
- Modified: 2026-10-27T18:10:00.130Z
- Also known as: GHSA-64f8-pjgr-9wmr, GHSA-xw2c-hrr9-4xwr
- Weaknesses: CWE-75
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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).

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 1.5.5; from 2.0.0-beta.1 before 2.0.0-beta.3; before 1.5.2; 2.0.0 (not affected: 1.5.5; 2.0.0-beta.3; 1.5.2)
- surrealdb (crates.io): before 1.5.5; from 2.0.0-beta.1 before 2.0.0-beta.3; all versions
- surrealdb-core (crates.io): before 1.5.2

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- GitHub: CVSS:4.0 High `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`

## 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)

## Sources

- CVE List: [CVE-2024-58362](https://www.cve.org/CVERecord?id=CVE-2024-58362), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-64f8-pjgr-9wmr](https://github.com/advisories/GHSA-64f8-pjgr-9wmr), CC-BY-4.0, modified 2026-07-19
- GitHub Advisory Database: [GHSA-xw2c-hrr9-4xwr](https://github.com/advisories/GHSA-xw2c-hrr9-4xwr), CC-BY-4.0, modified 2026-09-04
- NVD: [CVE-2024-58362](https://nvd.nist.gov/vuln/detail/CVE-2024-58362), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2024-58362 · Whole record: https://cve.day/CVE-2024-58362.json · Rebuilt by cve.day 2026-11-25T22:58:53.049Z
