Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| surrealdb | surrealdb | 2.2.0 – < 2.2.2, 2.1.0 – < 2.1.5, < 2.0.5 | 2.2.2 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | surrealdb | >= 2.2.0, < 2.2.2 | 2.2.2 | GHSA-5q9x-554g-9jgg |
| crates.io | surrealdb | >= 2.1.0, < 2.1.5 | 2.1.5 | GHSA-5q9x-554g-9jgg |
| crates.io | surrealdb | < 2.0.5 | 2.0.5 | GHSA-5q9x-554g-9jgg |
References
- GitHub Security Advisory (GHSA-5q9x-554g-9jgg) vendor-advisory
- VulnCheck Advisory: SurrealDB before 2.2.2 SSRF via HTTP Redirect Bypass third-party-advisory