Skip to main content

SurrealDB CVE-2026-109339

| EUVDEUVD-2026-97641 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-10-12 VulnCheck GHSA-rj2f-8wx8-hgm5
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with Owner privileges
  2. Delivery
    Install malicious Surrealism module
  3. Exploit
    Module emits output without newlines
  4. Execution
    Unbounded host buffering bypasses module memory limit
  5. Impact
    Server crashes, all namespaces/databases denied

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an Owner-privileged actor (PR:H) who can install a Surrealism module, and that module must write stdout/stderr output without newline characters so the host buffers it unbounded, bypassing the configured per-module memory limit. The deployment must be running an affected SurrealDB version (3.1.0 up to, but not including, 3.3.0) with the Surrealism runtime/module feature in use - instances that do not use Surrealism modules are not exposed. The key limiting factor is the Owner-level privilege requirement: this is not remotely reachable by unauthenticated or low-privileged users, so realistic risk is confined to malicious insiders, compromised Owner credentials, or untrusted-module scenarios. No end-user interaction is required once the module is installed.

Impact

This is a moderate, privilege-gated denial-of-service issue rather than a top-tier priority. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N, VA:H, confidentiality and integrity N) is internally consistent with the description: the attack is network-reachable and low-complexity, but it requires PR:H - specifically an Owner-level actor capable of installing a Surrealism module - and the only impact is availability (host memory exhaustion / server crash). No EPSS score, CISA KEV entry, or POC was provided in the input, so there is no signal of active or probable exploitation; the PR:H requirement makes mass, opportunistic exploitation unlikely and points toward an insider or compromised-Owner-credential scenario. The high privilege barrier is the decisive mitigating factor - an Owner who installs a malicious module already holds broad control over the namespace/database, which limits the marginal value of this specific bug. Note the signals do not conflict: moderate CVSS, no exploitation evidence, and high required privilege all align on 'real but not urgent.' The one escalating factor is blast radius: a single crash denies service across ALL namespaces and databases on the server, so in a shared multi-tenant deployment the impact of a trusted-but-malicious or compromised Owner is disproportionate.

Exploit ScenarioDerived

An attacker who holds (or has compromised) SurrealDB Owner privileges installs a malicious Surrealism module that writes a continuous stream of stdout/stderr output without newline characters. Because the host buffers these lines unbounded and bypasses the configured module memory limit, host memory is steadily consumed until the server process crashes, denying service to every namespace and database. No public exploit or POC was identified in the provided data, and exploitation requires the Owner-level install step.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 12, 2026

Memory exhaustion in SurrealDB 3.1.0 through 3.2.x lets a Surrealism module crash the entire server, denying service to every namespace and database it hosts. The flaw is that host-side buffering of module stdout/stderr output is unbounded and bypasses the configured per-module memory limit, so a module that writes output without newline characters grows the host buffer until memory is depleted. It is confirmed as a privilege-gated issue: an attacker must hold Owner-level rights to install the malicious module (CVSS vector PR:H), and no public exploit code or active exploitation has been identified at time of analysis; instances that do not use Surrealism modules are not exposed.

RemediationAI

Vendor-released patch: upgrade to SurrealDB 3.3.0 or later, which is the first release outside the affected 3.1.0-before-3.3.0 range; see the GitHub advisory at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-jj89-wvrw-c4gp for the authoritative fix guidance. If upgrading cannot be done immediately, treat Owner-level module installation as a trusted operation only - restrict the Owner role to a small set of vetted operators, do not load third-party or unreviewed Surrealism modules, and remove or disable any currently installed modules that are not required, accepting that this curtails the extensibility the runtime is meant to provide. Where modules must remain in use, run SurrealDB under an OS-level memory cap or container memory limit (for example a cgroup limit plus a restart policy) so host exhaustion kills and restarts the instance rather than destabilizing the underlying host - the trade-off is that a malicious module can still force repeated restarts and short outages, so this reduces blast radius rather than eliminating the denial of service. Note that namespace- or database-level isolation does not mitigate this issue, because the resource is consumed in the shared host process and the resulting crash affects all tenants; also be aware that per-module memory limits are exactly the control being bypassed, so relying on them alone is not a valid compensating measure.

Affected VersionsENISA

surrealdb 3.1.0 <3.3.0
surrealism-runtime 0.3.0 <0.6.0

Affected Packages

euvd surrealdb fix: 3.3.0
euvd surrealism_runtime fix: 0.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling). SurrealDB's Surrealism runtime hosts user-installed modules and enforces a per-module memory cap, but that cap is applied to the module's own allocation and does not cover the host-side buffer that captures the module's stdout/stderr streams. When a module emits output continuously without newline delimiters, the host accumulates it line-by-line in memory indefinitely instead of flushing bounded chunks, so the guest-side limit is never triggered and the host process grows until it is killed or crashes. Because the exhaustion happens in the host process rather than inside a single module sandbox, the failure is not contained to one namespace - the whole server instance goes down, taking all namespaces and databases with it. The CPE data identifies two affected components in lockstep: cpe:2.3:a:surrealdb:surrealdb (the server) and cpe:2.3:a:surrealdb:surrealism-runtime (the module runtime), consistent with the flaw being an interaction between the two rather than a defect in module code. Only deployments running SurrealDB 3.1.0 or later, below the 3.3.0 fix line, with Surrealism modules actually in use are in scope.

Know when Surrealdb gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 4.9 MEDIUM

Network-reachable module runtime (AV:N) with no special timing (AC:L), but installing a Surrealism module needs Owner rights (PR:H); impact is availability-only server crash (A:H, C/I:N).

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Oct 12, 2026 - 18:03 EUVD

DescriptionCVE.org

SurrealDB 3.1.0 before 3.3.0 lets Surrealism modules exhaust server memory because module stdout/stderr lines are buffered unbounded in host memory, bypassing the configured module memory limit. An attacker can run an Owner-installed malicious module that writes output without newlines, crashing the server and denying service to all namespaces and databases.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
newer multi-model database, limited enterprise production footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-71392 CRITICAL
9.4 Jul 18

Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica

CVE-2026-63756 CRITICAL
9.2 Jul 20

Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act

CVE-2026-63760 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web

CVE-2026-63747 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi

CVE-2026-63757 HIGH
8.7 Jul 20

Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the

CVE-2026-109343 HIGH
8.6 Oct 12

SurrealDB versions before 3.3.0 fail to validate a caller's authorization level when the SurrealQL USE statement switche

CVE-2026-109334 HIGH
8.6 Oct 12

Cross-tenant data access in SurrealDB before 3.3.0 allows an authenticated namespace- or database-level SYSTEM user to b

CVE-2026-63735 HIGH POC
8.6 Jul 20

Cross-tenant authorization bypass in SurrealDB before 3.2.0 lets any authenticated user reach custom API endpoints belon

CVE-2026-63739 HIGH
8.3 Jul 20

Arbitrary file read in SurrealDB before 3.1.5 lets an authenticated database user holding the EDITOR or OWNER role discl

CVE-2026-63763 HIGH
7.5 Jul 20

Confused-deputy privilege escalation in SurrealDB before 2.5.0 and before 3.0.0-beta.3 lets a low-privileged user (e.g.

CVE-2026-63737 HIGH
7.1 Jul 20

Denial of service in SurrealDB before 3.1.5 lets an authenticated user with query-execution privileges crash the entire

CVE-2026-109338 HIGH
7.1 Oct 12

Denial of service in SurrealDB versions before 3.3.0 lets a query-capable authenticated user with embedded JavaScript sc

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy