CVE-2024-1765: Quiche Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-78wx-jg4j-5j6g
CVSS 5.9
CWE-400
Published
Advisory Summary

CVE-2024-1765 is a MODERATE (CVSS 5.9) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Quiche libraries in the crates.io ecosystem. The issue involves quiche vulnerable to unlimited resource allocation by quic crypto frames flooding. Remediation is available by upgrading affected packages to version 0.19.2, 0.20.1.

CVE-2024-1765 at a Glance

CVE Identifier CVE-2024-1765
GHSA Identifier GHSA-78wx-jg4j-5j6g
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Quiche
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2024-1765

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

quiche fixed: 0.19.2
Upgrade quiche to 0.19.2
quiche fixed: 0.20.1
Upgrade quiche to 0.20.1
Verify Direct and Transitive Dependencies

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

inspect dependencies for quiche

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-1765, inspect your project dependencies for Quiche:

inspect dependencies for quiche

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Quiche, 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

### Impact Cloudflare Quiche (through version 0.19.1/0.20.0) was affected by an unlimited resource allocation vulnerability causing rapid increase of memory usage of the system running quiche server or client. A remote attacker could take advantage of this vulnerability by repeatedly sending an unlimited number of 1-RTT CRYPTO frames after previously completing the QUIC handshake. Exploitation was possible for the duration of the connection which could be extended by the attacker. ### Patches Quiche 0.19.2 and 0.20.1 are the earliest versions containing the fix for this issue.

CVE-2024-1765 Affected Quiche Versions

2 component(s)
Fixed Versions:
0.19.20.20.1
Product / Package Ecosystem Affected Versions Fixed Version
quiche
crates.io
< 0.19.2
0.19.2
quiche
crates.io
≥ 0.20.0
< 0.20.1
0.20.1

References

Frequently Asked Questions

What is CVE-2024-1765?
CVE-2024-1765 is a security vulnerability in Quiche involving quiche vulnerable to unlimited resource allocation by QUIC CRYPTO frames flooding under CWE-400: Uncontrolled Resource Consumption.
Which Quiche versions are affected?
Affected versions include releases prior to 0.19.2, 0.20.1 across affected packages: quiche.
What version fixes CVE-2024-1765?
Upgrading to 0.19.2, 0.20.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is quiche affected?
Yes, quiche is affected in releases prior to 0.19.2, 0.20.1. Upgrade your dependency to 0.19.2, 0.20.1 or later.
What is the CVSS score of CVE-2024-1765?
CVE-2024-1765 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-1765?
CVE-2024-1765 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check crates.io dependencies for CVE-2024-1765?
Run the dependency tree command: 'inspect dependencies for quiche'. 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-78wx-jg4j-5j6g",
  "modified" : "2024-03-13T15:39:41Z",
  "published" : "2024-03-13T15:39:40Z",
  "aliases" : [ "CVE-2024-1765" ],
  "summary" : "quiche vulnerable to unlimited resource allocation by QUIC CRYPTO frames flooding",
  "details" : "### Impact\n\nCloudflare Quiche (through version 0.19.1/0.20.0) was affected by an unlimited resource allocation vulnerability causing rapid increase of memory usage of the system running quiche server or client.\n\nA remote attacker could take advantage of this vulnerability by repeatedly sending an unlimited number of 1-RTT CRYPTO frames after previously completing the QUIC handshake.\nExploitation was possible for the duration of the connection which could be extended by the attacker.\n\n### Patches\n\nQuiche 0.19.2 and 0.20.1 are the earliest versions containing the fix for this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "quiche"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.19.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "quiche"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.20.0"
      }, {
        "fixed" : "0.20.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/quiche/security/advisories/GHSA-78wx-jg4j-5j6g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1765"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/quiche/commit/1017466c143fc93a82b286a1ba35e53334cdf8e2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/quiche/commit/11dbf5461ab657bbc02e466d719070124b27ef3c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cloudflare/quiche"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/quiche/releases/tag/0.19.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudflare/quiche/releases/tag/0.20.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-13T15:39:40Z",
    "nvd_published_at" : "2024-03-12T18:15:07Z"
  }
}