All vulnerabilities

crates.io

CVE-2026-134298

SurrealDB 3.0.0 before 4.0.0 VIEWER Role Authorization Bypass via Implicit Table Creation

Severity
Medium 5.3
Published
21 Nov 2026
Last changed
21 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.0.0
Exploit chance
0.4% in the next 30 daysHigher than 32% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Missing authorization (CWE-862)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Sources
CVE Program

Description

SurrealDB 3.0.0 before 4.0.0 contains an authorization bypass that allows users with the read-only VIEWER role to modify database schema, because CREATE on a nonexistent table implicitly defines it without the DEFINE TABLE permission check applied to explicit definitions. Authenticated VIEWER users can issue CREATE statements in non-STRICT databases to add arbitrary empty SCHEMALESS tables, cluttering schemas or colliding with application table names.

From the CVE Program.

Affected software

SoftwareAffected versions
surrealdbcrates.io · osv:crates.io:surrealdb
  • From 3.0.0 before 4.0.0

About surrealdb

Downloads in the last 90 days (crates.io)
611,769crates.io, 24 Nov 2026
Total downloads (crates.io)
1,955,161crates.io, 24 Nov 2026

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134298