CVE-2024-58363 json
SurrealDB before 1.5.4 Authentication Bypass via Database Switch
published 2y ago modified 13d ago also GHSA-gh9f-6xm2-c4j2 , EUVD-2024-55679
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io surrealdb 1.5.4, 2.0.0-alpha.6
- crates.io surrealdb-core 1.5.1
- surrealdb surrealdb 1.5.4, 2.0.0-alpha.6
- surrealdb surrealdb-core 1.5.1
- github.com/surrealdb/surrealdb@492f837 commit
- github.com/surrealdb/surrealdb#4335 pull request
Is CVE-2024-58363 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3mo ago
Exploit prediction
0.34% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CNA | 4.0 | 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 |
| GitHub | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | surrealdb | <1.5.4 >=2.0.0-alpha.1, <2.0.0-alpha.6 |
1.5.4 2.0.0-alpha.6 |
| crates.io | surrealdb-core | <1.5.1 |
1.5.1 |
Affected products
- surrealdb surrealdb
- surrealdb surrealdb-core
Classification
- Weakness
-
- CWE-287 Improper Authentication
References
-
github.com
/surrealdb/surrealdb/pull/4335
web
-
github.com
/surrealdb/surrealdb/commit/492f8378d57968dbdf5e63fad41b6ff59bba0b80
web
-
github.com
/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2
vendor-advisory, web
-
vulncheck.com
/advisories/surrealdb-before-authentication-bypass-via-database-switch
third-party-advisory
-
github.com
/surrealdb/surrealdb
package
Sources
- CVE List CVE-2024-58363
- GitHub Advisory GHSA-gh9f-6xm2-c4j2
- NVD CVE-2024-58363
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.