Uncontrolled Resource Consumption ('Resource Exhaustion') Affecting surrealdb package, versions <1.1.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncontrolled Resource Consumption ('Resource Exhaustion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-SURREALDB-6182934
  • published21 Jan 2024
  • disclosed19 Jan 2024
  • creditUnknown

Introduced: 19 Jan 2024

CVE NOT AVAILABLE CWE-400  (opens in a new tab)

How to fix?

Upgrade surrealdb to version 1.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') via the WebSocket interface. An attacker can cause the server to consume high CPU by sending an HTTP request with excessively long headers during the client handshake, potentially leading to a denial of service.

Workaround

Users unable to update may limit access to the WebSocket interface via reverse proxy if not in use or only used by a limited number of trusted clients. Alternatively, a reverse proxy may be used to strip or truncate request headers exceeding a reasonable length before reaching the server.

CVSS Scores

version 3.1