CVE-2025-71395: SurrealDB before 2.2.2 Memory Exhaustion via string::replace

Published Jul 18, 2026
·
Updated

SurrealDB versions before 2.2.2 contain a memory exhaustion vulnerability in the string::replace function that fails to restrict resulting string length when using regex patterns. An authenticated attacker can craft a malicious query to exhaust server memory through unbounded string allocations, causing denial of service.

Affected Software

4 affected components
SurrealDB SurrealDB<2.2.2
SurrealDB SurrealDB<2.0.5
SurrealDB SurrealDB>=2.1.0<2.1.5
SurrealDB SurrealDB>=2.2.0<2.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade SurrealDB to a version that resolves this vulnerability.

    Fixed in 2.2.2

Event History

Jul 18, 2026
CVE Published
via MITRE·01:10 PM
Data Sourced
via MITRE·01:10 PM
DescriptionWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-71395?

CVE-2025-71395 has a high severity rating of 7.1 according to the CVSS scoring system.

2

How do I fix CVE-2025-71395?

To mitigate CVE-2025-71395, upgrade SurrealDB to version 2.2.2 or later where the vulnerability is addressed.

3

What causes the vulnerability in CVE-2025-71395?

CVE-2025-71395 is caused by the string::replace function that allows for memory exhaustion through unbounded string allocations with certain regex patterns.

4

Who can exploit CVE-2025-71395?

An authenticated attacker can exploit CVE-2025-71395 by crafting a malicious query that triggers the memory exhaustion.

5

What impacts could CVE-2025-71395 have on a system?

Exploitation of CVE-2025-71395 can lead to server memory exhaustion, potentially causing system downtime or degraded performance.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203