CVE-2025-71391

SurrealDB before 2.2.2 Denial of Service via /sql endpoint

Published Jul 18, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
SurrealDB versions before 2.2.2 contain an uncaught exception vulnerability in the net module that allows authenticated users to crash the database. Attackers can send crafted HTTP queries containing null bytes to the /sql endpoint, causing an unhandled exception that crashes the SurrealDB instance and any dependent applications.

Analysis

AI-generated

Technical impact

An uncaught exception in SurrealDB's net module lets an authenticated user crash the database by sending a crafted HTTP contains null bytes. The exception propagates without handling, terminating the SurrealDB instance and any applications that depend on it, resulting in a denial of service and potentially taking the entire database offline.

Affected Systems

This flaw affects SurrealDB products from the SurrealDB vendor. All builds released before version 2.2.2 are vulnerable, including 2.2.1 and earlier releases. The vulnerability can only be exploited by users who have valid authentication credentials against the database.

Risk and Exploitability

The CVSS base score of 7.1 indicates a moderate to high impact, while the EPSS score of less than 1% shows a very low likelihood of widespread exploitation. The flaw is not listed in CISA's KEV catalog. Attackers would need legitimate credentials and network access to the /sql endpoint; once authenticated, the unhandled exception causes the service to crash, leading to a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 2.2.2 or later to apply the vendor‑provided fix.
  • If an update cannot be performed immediately, block or for unauthenticated or unauthorised traffic using network firewalls or reverse‑proxy rules.
  • Configure request validation or input sanitisation at the proxy level to reject queries that contain null bytes before they reach the database.

Generated by OpenCVE AI on July 30, 2026 at 23:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SurrealDB versions before 2.2.2 contain an uncaught exception vulnerability in the net module that allows authenticated users to crash the database. Attackers can send crafted HTTP queries containing null bytes to the /sql endpoint, causing an unhandled exception that crashes the SurrealDB instance and any dependent applications.
Title SurrealDB before 2.2.2 Denial of Service via /sql endpoint
Weaknesses CWE-248
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jul 16, 2026, 12:14 PM
Status
Analyzed
Published
Jul 18, 2026, 2:17 PM
Modified
Oct 29, 2026, 9:17 PM