CVE-2024-58362
published high CVSS 4.0 · 8.7SurrealDB before 1.5.5 Query Injection via RPC API
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| surrealdb | — | surrealdb0 to < 1.5.5 (affected · semver) · 1.5.5 (unaffected · semver) · 2.0.0-beta.1 to < 2.0.0-beta.3 (affected · semver) · 2.0.0-beta.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| surrealdb | — | surrealdb0 to < 1.5.2 (affected · semver) · 1.5.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| surrealdb | surrealdb | 0 to < 1.5.5 (affected · semver)1.5.5 (unaffected · semver)2.0.0-beta.1 to < 2.0.0-beta.3 (affected · semver)2.0.0-beta.3 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| surrealdb | surrealdb | 0 to < 1.5.2 (affected · semver)1.5.2 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-75 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)
References
2- GitHub Security Advisory (GHSA-64f8-pjgr-9wmr) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-64f8-pjgr-9wmr
- VulnCheck Advisory: SurrealDB before 1.5.5 Query Injection via RPC API https://www.vulncheck.com/advisories/surrealdb-before-query-injection-via-rpc-api
Provider assertions
2VulnCheck · cna
SurrealDB before 1.5.5 Query Injection via RPC API
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b625e7148331be64b62d62e573a5aa45c43e42fb1ee5b00719c33ef0a4c4ea32
- Ingested
- 23 Sep 2026, 08:32:30 UTC
- Source record
- Official CVE record