CVE-2026-134298
Deferred Deferred - Pending Action

SurrealDB Authorization Bypass via CREATE Statement

Vulnerability report for CVE-2026-134298, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
surrealdb surrealdb From 3.0.0 (inc) to 4.0.0 (exc)
surrealdb surrealdb to 4.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

SurrealDB 3.0.0 before 4.0.0 has an authorization bypass where users with the read-only VIEWER role can modify the database schema. This happens because CREATE statements on non-existent tables implicitly create them without enforcing the DEFINE TABLE permission check that applies to explicit table definitions. Authenticated VIEWER users can add arbitrary empty SCHEMALESS tables in non-STRICT databases, potentially cluttering schemas or causing name collisions.

Detection Guidance

Check SurrealDB version with: surreal version. If version is 3.0.0 to 3.9.99, the system is vulnerable. Review database schemas for unexpected empty tables created by VIEWER users. Enable logging for CREATE statements in non-STRICT databases to detect unauthorized table definitions.

Impact Analysis

This vulnerability allows read-only users to add empty tables to databases, which can clutter schemas or cause name collisions with existing tables. While no data is read or modified, it disrupts database structure and may interfere with applications relying on specific table names.

Compliance Impact

This vulnerability allows unauthorized schema modifications by read-only users, which could lead to data integrity issues or unauthorized access to sensitive information. For GDPR, this may violate principles of data protection by design and default. For HIPAA, it could compromise the integrity of protected health information systems.

Mitigation Strategies

Upgrade SurrealDB to version 4.0.0 or later immediately. Set all databases accessible to VIEWER users to STRICT mode as a temporary workaround. Review and remove any unauthorized tables created by VIEWER users. Restrict VIEWER role permissions to prevent future implicit table creation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134298. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...