CVE-2025-71391: SurrealDB before 2.2.2 Denial of Service via /sql endpoint
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.
Security readout for executives and security teams
Plain-English summary
An authenticated user can send a specially crafted request to SurrealDB’s /sql endpoint and crash the database. This can interrupt every application relying on that instance. The issue affects SurrealDB releases before 2.2.2 and threatens availability, not data confidentiality or integrity, according to the supplied CVSS assessment.
Executive priority
Prioritize remediation for production instances supporting critical applications, especially when /sql is internet-accessible or available to less-trusted users. Schedule prompt upgrades and temporary access restrictions. Lower-exposure internal systems still require inventory and planned remediation because a single authenticated request can disrupt dependent services.
Technical view
CVE-2025-71391 is a CWE-248 uncaught-exception flaw in SurrealDB’s net module. A crafted HTTP query containing null bytes can trigger an unhandled exception through /sql, terminating the instance. CVSS 4.0 rates it 7.1: network-accessible, low complexity, low privileges, no user interaction, and high vulnerable-system availability impact.
Likely exposure
Exposure requires SurrealDB before 2.2.2, an accessible /sql endpoint, and valid authentication. Internet-accessible or broadly reachable deployments, shared credentials, and untrusted authenticated users increase practical risk. The supplied version metadata is internally ambiguous, so inventory results should be checked against the vendor advisory.
Exploitation context
The supplied bundle does not identify this CVE as CISA KEV and provides no evidence of active exploitation. Exploitation requires authentication but is otherwise described as network-accessible and low complexity. Treat exposed instances as credible denial-of-service targets without assuming compromise or data theft.
Researcher notes
The supplied structured affected-version entries are ambiguous and list multiple ranges with defaultStatus set to unaffected, while the title and description state versions before 2.2.2 are vulnerable. Confirm branch-specific applicability through the vendor advisory. No confidentiality or integrity impact, public exploitation, or additional affected products is established by the bundle.
Mitigation direction
Upgrade affected SurrealDB instances to version 2.2.2 or later after reviewing the vendor advisory.
Restrict /sql endpoint access to trusted networks and necessary authenticated users.
Rotate or revoke credentials that may be shared, exposed, or no longer required.
Use service supervision and availability monitoring to reduce outage duration while upgrades are pending.
Validation and detection
Inventory SurrealDB versions and identify every instance running a release earlier than 2.2.2.
Confirm which networks, applications, and authenticated users can reach each /sql endpoint.
Review authentication and request logs for unusual /sql activity and correlated unexpected restarts.
Verify upgraded instances report version 2.2.2 or later and dependent applications remain healthy.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-248: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.