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

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 ID SNYK-RUST-SURREALDB-6180569
  • published 19 Jan 2024
  • disclosed 18 Jan 2024
  • credit Tu0Laj1

Introduced: 18 Jan 2024

CVE NOT AVAILABLE CWE-400 Open this link 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 processing of HTTP headers ID, DB, and NS. An unauthenticated attacker can cause the server to crash by sending specially crafted values in these headers, leading to a denial of service.

Notes:

  1. This issue only affects the SurrealDB binary; it does not affect the SurrealDB library.

2)This does not require the SurrealDB server to be running with any specific capabilities other than exposing the affected interface.

Workaround

  1. Limit untrusted access to the SurrealDB HTTP REST API unless such access is required by the application.

  2. Ensure that the SurrealDB process is running so that it can be automatically re-started after a crash.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High