← VULNERABILITIES

CVE-2026-134298

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

Medium · 5.3Fix available
CVSS
5.3
EPSS
0.46% (p32)
Published
2026-11-21
Age
8d old
Modified
2026-11-25
Product
surrealdb surrealdb
Aliases
GHSA-m887-2246-mgw3

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

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.

Fixed in

4.0.0

Affected packages

EcosystemPackageRangeFixed
vendorsurrealdb>=3.0.0, <4.0.04.0.0

Sources

  • NVD · first seen 8d ago · NVD terms of use
  • OSV · first seen 8d ago · CC-BY 4.0
  • CVE List · first seen 8d ago · CVE Terms of Use

References

JSON