Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-134298: medium-severity vulnerability (CVSS 5.3) in surrealdb surrealdb.
What happened
Original description from the source: 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.
Why it matters
Medium severity, CVSS 5.3.
Affected products and versions
surrealdb surrealdb >= 3.0.0, < 4.0.0; surrealdb surrealdb 4.0.0 (fixed in 4.0.0)
| Product | Versions | Fixed in |
|---|---|---|
| surrealdb surrealdb | >= 3.0.0, < 4.0.0 | — |
| surrealdb surrealdb | 4.0.0 | 4.0.0 |
Action recommended by the source
Upgrade to a fixed version: 4.0.0.
Fixed in: 4.0.0
Sources and references
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m887-2246-mgw3 — CVE Program
- https://www.vulncheck.com/advisories/surrealdb-3.0.0-before-4.0.0-viewer-role-authorization-bypass-via-implicit-table-creation — CVE Program
Weaknesses (CWE): CWE-862
Relevant change history
Published
Preliminary advisory published.