CVE-2024-37309: Crate Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-x268-qpg6-w9g2
CVSS 5.3
CWE-770
Published
Advisory Summary

CVE-2024-37309 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Crate libraries in the Maven ecosystem. The issue involves cratedb has a client initialized session-renegotiation dos. Remediation is available by upgrading affected packages to version 5.7.2.

CVE-2024-37309 at a Glance

CVE Identifier CVE-2024-37309
GHSA Identifier GHSA-x268-qpg6-w9g2
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Crate
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2024-37309

To remediate this vulnerability, upgrade all affected Crate dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.crate:crate fixed: 5.7.2
<dependency>
    <groupId>io.crate</groupId>
    <artifactId>crate</artifactId>
    <version>5.7.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.crate

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-37309, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.crate

Analyze the terminal output to locate any version of Crate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.7.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.crate command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Crate, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**Summary** Client-Initiated TLS Renegotiation Denial of Service (DoS) Vulnerability at Port 4200 **Details** A high-risk vulnerability has been identified where the TLS endpoint (port 4200) permits client-initiated renegotiation. In this scenario, an attacker can exploit this feature to repeatedly request renegotiation of security parameters during an ongoing TLS session. This flaw could lead to excessive consumption of CPU resources, resulting in potential server overload and service disruption. The vulnerability was confirmed using an openssl client where the command 'R' initiates renegotiation, followed by the server confirming with 'RENEGOTIATING'. **PoC** 1. Connect to the TLS server on port 4200 using an openssl client. 2. Initiate a TLS session. 3. Send the renegotiation command ('R') multiple times. 4. Observe the server response to confirm renegotiation. **Impact** This vulnerability allows an attacker to perform a denial of service attack by exhausting server CPU resources through repeated TLS renegotiations. This impacts the availability of services running on the affected server, posing a significant risk to operational stability and security. TLS 1.3 explicitly forbids renegotiation, since it closes a window of opportunity for an attack.

CVE-2024-37309 Affected Crate Versions

1 component(s)
Fixed Versions:
5.7.2
Product / Package Ecosystem Affected Versions Fixed Version
io.crate:crate
Maven
< 5.7.2
5.7.2

References

Frequently Asked Questions

What is CVE-2024-37309?
CVE-2024-37309 is a security vulnerability in Crate involving CrateDB has a Client initialized Session-Renegotiation DoS under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Crate versions are affected?
Affected versions include releases prior to 5.7.2 across affected packages: io.crate:crate.
What version fixes CVE-2024-37309?
Upgrading to 5.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is crate affected?
Yes, io.crate:crate is affected in releases prior to 5.7.2. Upgrade your dependency to 5.7.2 or later.
What is the CVSS score of CVE-2024-37309?
CVE-2024-37309 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2024-37309?
CVE-2024-37309 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2024-37309?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.crate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x268-qpg6-w9g2",
  "modified" : "2024-06-13T19:39:06Z",
  "published" : "2024-06-13T19:39:06Z",
  "aliases" : [ "CVE-2024-37309" ],
  "summary" : "CrateDB has a Client initialized Session-Renegotiation DoS",
  "details" : "**Summary**  \nClient-Initiated TLS Renegotiation Denial of Service (DoS) Vulnerability at Port 4200\n\n**Details**  \nA high-risk vulnerability has been identified where the TLS endpoint (port 4200) permits client-initiated renegotiation. In this scenario, an attacker can exploit this feature to repeatedly request renegotiation of security parameters during an ongoing TLS session. This flaw could lead to excessive consumption of CPU resources, resulting in potential server overload and service disruption. The vulnerability was confirmed using an openssl client where the command 'R' initiates renegotiation, followed by the server confirming with 'RENEGOTIATING'.\n\n**PoC**  \n1. Connect to the TLS server on port 4200 using an openssl client.\n2. Initiate a TLS session.\n3. Send the renegotiation command ('R') multiple times.\n4. Observe the server response to confirm renegotiation.\n\n**Impact**  \nThis vulnerability allows an attacker to perform a denial of service attack by exhausting server CPU resources through repeated TLS renegotiations. This impacts the availability of services running on the affected server, posing a significant risk to operational stability and security.\n\n\nTLS 1.3 explicitly forbids renegotiation, since it closes a window of opportunity for an attack.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.crate:crate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/security/advisories/GHSA-x268-qpg6-w9g2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37309"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crate/crate/commit/1dde03bdf031a20886065195527e368e4a3218b3"
  }, {
    "type" : "WEB",
    "url" : "https://cratedb.com/docs/crate/reference/en/latest/appendices/release-notes/5.7.2.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crate/crate"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-13T19:39:06Z",
    "nvd_published_at" : "2024-06-13T14:15:13Z"
  }
}