CVE-2024-58363
MEDIUM 5.3CVSS 4.0SurrealDB vulnerable to Improper Authentication when Changing Databases as Scope User
SurrealDB before 1.5.4 and 2.0.0-alpha.1 before 2.0.0-alpha.6 fails to properly validate authentication when a scope user switches databases using the USE clause or use method. Attackers with an authenticated session can impersonate an unrelated user in a different database if a user record with an identical identifier exists, allowing unauthorized actions if permissions rely solely on the $auth parameter.
- Published
- 18 Jul 2026
- Last modified
- 29 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- GHSA-gh9f-6xm2-c4j2
- Sources
- NVDJSONOSV GHSA-gh9f-6xm2-c4j2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/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:L/VI:L/VA:L/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
< 1.5.4 | 1.5.4 |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha1:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha2:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha3:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha4:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha5:*:*:*:*:*:* |
= 2.0.0 | |
| OSV | crates.io | surrealdb | < 1.5.4 | 1.5.4 |
| OSV | crates.io | surrealdb | >= 2.0.0-alpha.1, < 2.0.0-alpha.6 | 2.0.0-alpha.6 |
| OSV | crates.io | surrealdb-core | < 1.5.1 | 1.5.1 |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2 · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch · Third Party Advisory
- https://github.com/surrealdb/surrealdb/pull/4335 · WEB
- https://github.com/surrealdb/surrealdb/commit/492f8378d57968dbdf5e63fad41b6ff59bba0b80 · WEB
- https://github.com/surrealdb/surrealdb · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 18 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Jul 2024)