# CVE-2024-58358: SurrealDB before 2.1.0 Denial of Service via Nonexistent Role

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/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.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2024-11-22T20:11:44.000Z
- Modified: 2026-10-27T18:10:00.130Z
- Also known as: GHSA-jc55-246c-r88f
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

SurrealDB versions before 2.1.0 contain a denial of service vulnerability in role conversion that allows privileged owner users to define users with nonexistent roles. Attackers can trigger an uncaught panic by signing in with a user assigned an invalid role, crashing the server.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 2.1.0 (not affected: 2.1.0)
- surrealdb (crates.io): before 2.1.0
- surrealdb-core (crates.io): before 2.1.0

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-jc55-246c-r88f> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-nonexistent-role> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-58358> (advisory)
- <https://github.com/surrealdb/surrealdb/pull/5079> (web)
- <https://github.com/surrealdb/surrealdb/pull/5092> (web)
- <https://github.com/surrealdb/surrealdb> (package)

## Sources

- CVE List: [CVE-2024-58358](https://www.cve.org/CVERecord?id=CVE-2024-58358), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-jc55-246c-r88f](https://github.com/advisories/GHSA-jc55-246c-r88f), CC-BY-4.0, modified 2026-09-04
- NVD: [CVE-2024-58358](https://nvd.nist.gov/vuln/detail/CVE-2024-58358), Public domain, modified 2026-10-27

---

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