# CVE-2026-63741: SurrealDB before 3.1.0 Authentication Bypass via USE statement

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/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.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-07-01T20:21:25.000Z
- Modified: 2026-11-04T02:56:04.528Z
- Also known as: GHSA-wp87-mgvq-5j93
- Weaknesses: CWE-862, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

SurrealDB versions before 3.1.0 fail to validate DEFINE NAMESPACE or DEFINE DATABASE permissions when processing USE NS and USE DB statements. Unauthenticated attackers can create arbitrary namespaces and databases by issuing USE commands, bypassing authorization checks in the RPC use method and SurrealQL executor.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 3.1.0 (not affected: 3.1.0)
- surrealdb (crates.io): before 3.1.0

## Every score

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

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-wp87-mgvq-5j93> (mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-use-statement> (third-party-advisory)
- <https://github.com/surrealdb/surrealdb/commit/f3ee3bd55533c14f1fa3e69ce18fc8904c1ce3f9> (web)
- <https://github.com/surrealdb/surrealdb> (package)

## Sources

- CVE List: [CVE-2026-63741](https://www.cve.org/CVERecord?id=CVE-2026-63741), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-wp87-mgvq-5j93](https://github.com/advisories/GHSA-wp87-mgvq-5j93), CC-BY-4.0, modified 2026-11-04
- NVD: [CVE-2026-63741](https://nvd.nist.gov/vuln/detail/CVE-2026-63741), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-63741 · Whole record: https://cve.day/CVE-2026-63741.json · Rebuilt by cve.day 2026-11-25T22:59:29.202Z
