CVE-2025-71398: SurrealDB before 2.2.2 SSRF via HTTP Redirect Bypass
SurrealDB before 2.2.2 fails to validate HTTP redirects in http functions, allowing authenticated users to bypass deny-net restrictions by redirecting to blocked IP addresses. Attackers can host a public server that redirects to denied network targets, enabling server-side request forgery to access internal endpoints and retrieve sensitive information.
Security readout for executives and security teams
Plain-English summary
An authenticated SurrealDB user can make the database follow a redirect from a public server to a normally blocked internal address. This server-side request forgery could expose sensitive internal services or let the requester affect their availability or integrity. The supplied assessment is CVSS 4.0 5.8, medium severity.
Executive priority
Prioritize remediation for internet-facing or multi-tenant deployments where less-trusted authenticated users can use HTTP functions. Treat isolated, tightly administered instances as lower urgency after validating permissions and egress controls. Sensitive cloud metadata or administrative services reachable from the database host increase business urgency.
Technical view
SurrealDB versions before 2.2.2 do not revalidate redirect destinations used by HTTP functions against deny-net restrictions. A permitted external URL can therefore redirect the server to a denied IP address. Exploitation requires authentication and a prepared redirect, but no user interaction. The source bundle identifies CWE-918.
Likely exposure
Exposure is most likely where a pre-2.2.2 SurrealDB instance permits authenticated, potentially untrusted users to invoke HTTP functions and can reach sensitive internal endpoints. Risk falls where those functions are unavailable, authorization is tightly restricted, or independent egress controls block internal destinations.
Exploitation context
The source bundle describes a network-reachable attack requiring low privileges and an attacker-controlled redirect. It provides no cited evidence of active exploitation, and the CVE is not listed as KEV. Exploitation status beyond those facts is unknown.
Researcher notes
CVSS 4.0 is 5.8 with AV:N, AC:L, AT:P, PR:L, and UI:N. The primary weakness is redirect destination validation after an initially allowed request. The supplied affected-version entries are ambiguous across 2.0, 2.1, and 2.2 branches; confirm branch-specific fixed versions in the vendor advisory.
Mitigation direction
Upgrade to SurrealDB 2.2.2 or a later vendor-supported release.
Consult the vendor advisory for fixed releases applicable to older maintained branches.
Restrict HTTP-function access to trusted authenticated users until remediation is complete.
Use independent egress controls to prevent SurrealDB from reaching sensitive internal or metadata endpoints.
Review internal services reachable from the SurrealDB host and reduce unnecessary access.
Validation and detection
Inventory SurrealDB versions and identify every instance earlier than 2.2.2.
Confirm which roles or users can invoke SurrealDB HTTP functions.
Verify upgraded instances revalidate redirect destinations against deny-net restrictions.
Review outbound request logs for redirects followed by connections to denied or internal addresses.
Confirm network controls block unnecessary access from SurrealDB to sensitive internal services.
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 · medium confidence lookup
CWE-918: Information exposure and cloud metadata lookup
Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. 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 SSRF or metadata access, so cloud discovery and credential material 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.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-918 · source CWE mapping
Server-Side Request Forgery (SSRF)
Server-Side Request Forgery (SSRF) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.