CVE-2024-22189: Github.com/quic go/quic go QUIC's Connection ID Mechanism Vulnerable Vulnerability

HIGH
Advisory Identifier: GHSA-c33x-xqrf-c478
CVSS 7.5
CWE-400 CWE-770
Published
Advisory Summary

CVE-2024-22189 is a HIGH (CVSS 7.5) quic's connection id mechanism vulnerable vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/quic go/quic go libraries in the Go ecosystem. The issue involves quic's connection id mechanism vulnerable to memory exhaustion attack. Remediation is available by upgrading affected packages to version 0.42.0.

CVE-2024-22189 at a Glance

CVE Identifier CVE-2024-22189
GHSA Identifier GHSA-c33x-xqrf-c478
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/quic go/quic go
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:H).

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 High (A:H)

How to Fix CVE-2024-22189

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

github.com/quic-go/quic-go fixed: 0.42.0
Upgrade github.com/quic-go/quic-go to 0.42.0
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 github.com/quic-go/quic-go

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-22189, inspect your project dependencies for Github.com/quic go/quic go:

inspect dependencies for github.com/quic-go/quic-go

Analyze the terminal output to locate any version of Github.com/quic go/quic go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.42.0), 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 Github.com/quic go/quic go, 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

An attacker can cause its peer to run out of memory by sending a large number of NEW_CONNECTION_ID frames that retire old connection IDs. The receiver is supposed to respond to each retirement frame with a RETIRE_CONNECTION_ID frame. The attacker can prevent the receiver from sending out (the vast majority of) these RETIRE_CONNECTION_ID frames by collapsing the peers congestion window (by selectively acknowledging received packets) and by manipulating the peer's RTT estimate. I published a more detailed description of the attack and its mitigation in this blog post: https://seemann.io/posts/2024-03-19-exploiting-quics-connection-id-management/. I also presented this attack in the IETF QUIC working group session at IETF 119: https://youtu.be/JqXtYcZAtIA?si=nJ31QKLBSTRXY35U&t=3683 There's no way to mitigate this attack, please update quic-go to a version that contains the fix.

CVE-2024-22189 Affected Github.com/quic go/quic go Versions

1 component(s)
Fixed Versions:
0.42.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/quic-go/quic-go
Go
< 0.42.0
0.42.0

References

Frequently Asked Questions

What is CVE-2024-22189?
CVE-2024-22189 is a security vulnerability in Github.com/quic go/quic go involving QUIC's Connection ID Mechanism vulnerable to Memory Exhaustion Attack under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/quic go/quic go versions are affected?
Affected versions include releases prior to 0.42.0 across affected packages: github.com/quic-go/quic-go.
What version fixes CVE-2024-22189?
Upgrading to 0.42.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/quic-go/quic-go affected?
Yes, github.com/quic-go/quic-go is affected in releases prior to 0.42.0. Upgrade your dependency to 0.42.0 or later.
What is the CVSS score of CVE-2024-22189?
CVE-2024-22189 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-22189?
CVE-2024-22189 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 Go dependencies for CVE-2024-22189?
Run the dependency tree command: 'inspect dependencies for github.com/quic-go/quic-go'. 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-c33x-xqrf-c478",
  "modified" : "2024-04-05T18:53:25Z",
  "published" : "2024-04-02T14:16:05Z",
  "aliases" : [ "CVE-2024-22189" ],
  "summary" : "QUIC's Connection ID Mechanism vulnerable to Memory Exhaustion Attack",
  "details" : "An attacker can cause its peer to run out of memory by sending a large number of NEW_CONNECTION_ID frames that retire old connection IDs. The receiver is supposed to respond to each retirement frame with a RETIRE_CONNECTION_ID frame. The attacker can prevent the receiver from sending out (the vast majority of) these RETIRE_CONNECTION_ID frames by collapsing the peers congestion window (by selectively acknowledging received packets) and by manipulating the peer's RTT estimate.\n\nI published a more detailed description of the attack and its mitigation in this blog post: https://seemann.io/posts/2024-03-19-exploiting-quics-connection-id-management/.\nI also presented this attack in the IETF QUIC working group session at IETF 119: https://youtu.be/JqXtYcZAtIA?si=nJ31QKLBSTRXY35U&t=3683\n\nThere's no way to mitigate this attack, please update quic-go to a version that contains the fix.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/quic-go/quic-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.42.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/security/advisories/GHSA-c33x-xqrf-c478"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22189"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/4a99b816ae3ab03ae5449d15aac45147c85ed47a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quic-go/quic-go"
  }, {
    "type" : "WEB",
    "url" : "https://seemann.io/posts/2024-03-19-exploiting-quics-connection-id-management"
  }, {
    "type" : "WEB",
    "url" : "https://www.youtube.com/watch?v=JqXtYcZAtIA&t=3683s"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-02T14:16:05Z",
    "nvd_published_at" : "2024-04-04T15:15:37Z"
  }
}