CVE-2025-71395 SurrealDB before 2.2.2 Memory Exhaustion via string::replace
HighCVSS 7.1
EPSS 0.45%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io surrealdb | < 2.0.5; >= 2.1.0, < 2.1.5; >= 2.2.0, < 2.2.2 | 2.0.5, 2.1.5, 2.2.2 | Fixed |
| crates.io surrealdb(crates.io) | < 2.0.5; >= 2.1.0, < 2.1.5; >= 2.2.0, < 2.2.2 | 2.0.5, 2.1.5, 2.2.2 | Fixed |
| surrealdb | < 2.0.5; >= 2.1.0, < 2.1.5; >= 2.2.0, < 2.2.2 | 2.0.5, 2.1.5, 2.2.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io surrealdb(crates.io) | >= 2.2.0, < 2.2.2 | 2.2.2 |
| crates.io surrealdb(crates.io) | >= 2.1.0, < 2.1.5 | 2.1.5 |
| crates.io surrealdb(crates.io) | < 2.0.5 | 2.0.5 |
| crates.io surrealdb | >= 2.2.0, < 2.2.2 | 2.2.2 |
| crates.io surrealdb | >= 2.1.0, < 2.1.5 | 2.1.5 |
| crates.io surrealdb | < 2.0.5 | 2.0.5 |
| surrealdb | < 2.0.5 | 2.0.5 |
| surrealdb | >= 2.1.0, < 2.1.5 | 2.1.5 |
| surrealdb | >= 2.2.0, < 2.2.2 | 2.2.2 |
References
- GitHub Security Advisory (GHSA-3633-g6mg-p6qq) vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- VulnCheck Advisory: SurrealDB before 2.2.2 Memory Exhaustion via string::replace third-party-advisory
- ENISA EUVD EUVD-2025-210486 third-party-advisory