CVE-2023-49295: Github.com/quic go/quic go Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-ppxx-5m9h-6vxf
CVSS 6.4
CWE-400
Published
Advisory Summary

CVE-2023-49295 is a MODERATE (CVSS 6.4) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/quic go/quic go libraries in the Go ecosystem. The issue involves quic-go's path validation mechanism can be exploited to cause denial of service. Remediation is available by upgrading affected packages to version 0.40.1, 0.39.4, 0.38.2, 0.37.7.

CVE-2023-49295 at a Glance

CVE Identifier CVE-2023-49295
GHSA Identifier GHSA-ppxx-5m9h-6vxf
Severity MODERATE
CVSS v3.1 Base Score 6.4
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: 6.4

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

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

How to Fix CVE-2023-49295

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.40.1
Upgrade github.com/quic-go/quic-go to 0.40.1
github.com/quic-go/quic-go fixed: 0.39.4
Upgrade github.com/quic-go/quic-go to 0.39.4
github.com/quic-go/quic-go fixed: 0.38.2
Upgrade github.com/quic-go/quic-go to 0.38.2
github.com/quic-go/quic-go fixed: 0.37.7
Upgrade github.com/quic-go/quic-go to 0.37.7
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-2023-49295, 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.40.1), 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 sending a large number of PATH_CHALLENGE frames. The receiver is supposed to respond to each PATH_CHALLENGE frame with a PATH_RESPONSE frame. The attacker can prevent the receiver from sending out (the vast majority of) these PATH_RESPONSE 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/2023-12-18-exploiting-quics-path-validation/ There's no way to mitigate this attack, please update quic-go to a version that contains the fix.

CVE-2023-49295 Affected Github.com/quic go/quic go Versions

4 component(s)
Fixed Versions:
0.40.10.39.40.38.20.37.7
Product / Package Ecosystem Affected Versions Fixed Version
github.com/quic-go/quic-go
Go
≥ 0.40.0
< 0.40.1
All 1 versions
0.40.0
0.40.1
github.com/quic-go/quic-go
Go
≥ 0.39.0
< 0.39.4
0.39.4
github.com/quic-go/quic-go
Go
≥ 0.38.0
< 0.38.2
0.38.2
github.com/quic-go/quic-go
Go
< 0.37.7
0.37.7

References

GitHub Advisory / Wiki ADVISORY
https://github.com/quic-go/quic-go/security/advisories/GHSA-ppxx-5m9h-6vxf
NVD — CVE-2023-49295 NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-49295
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/17fc98c2d81dbe685c19702dc694a9d606ac56dc
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/21609ddfeff93668c7625a85eb09f1541fdad965
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/3a9c18bcd27a01c551ac9bf8bd2b4bded77c189a
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/554d543b50b917369fb1394cc5396d928166cf49
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/6cc3d58935426191296171a6c0d1ee965e10534e
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/9aaefe19fc3dc8c8917cc87e6128bb56d9e9e6cc
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/a0ffa757499913f7be69aa78f573a6aee3430ae4
Security Fix Commit FIX COMMIT
https://github.com/quic-go/quic-go/commit/d7aa627ebde91cf799ada2a07443faa9b1e5abb8
Github.com/quic go/quic go Source Repository REPOSITORY
https://github.com/quic-go/quic-go
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G5RSHDTVMYAIGYVVFGKTMFHAZJMA3EVV
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZE7IOKXX5AATU2WR3V76X5Y3A44QAATG
seemann.io/posts/2023-12-18-ex... WEB
https://seemann.io/posts/2023-12-18-exploiting-quics-path-validation

Frequently Asked Questions

What is CVE-2023-49295?
CVE-2023-49295 is a security vulnerability in Github.com/quic go/quic go involving quic-go's path validation mechanism can be exploited to cause denial of service under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/quic go/quic go versions are affected?
Affected versions include releases prior to 0.40.1, 0.39.4, 0.38.2, 0.37.7 across affected packages: github.com/quic-go/quic-go.
What version fixes CVE-2023-49295?
Upgrading to 0.40.1, 0.39.4, 0.38.2, 0.37.7 (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.40.1, 0.39.4, 0.38.2, 0.37.7. Upgrade your dependency to 0.40.1, 0.39.4, 0.38.2, 0.37.7 or later.
What is the CVSS score of CVE-2023-49295?
CVE-2023-49295 has a CVSS v3.1 base score of 6.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H.
What CWE is associated with CVE-2023-49295?
CVE-2023-49295 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-2023-49295?
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-ppxx-5m9h-6vxf",
  "modified" : "2024-05-20T21:59:16Z",
  "published" : "2024-01-10T15:08:40Z",
  "aliases" : [ "CVE-2023-49295" ],
  "summary" : "quic-go's path validation mechanism can be exploited to cause denial of service",
  "details" : "An attacker can cause its peer to run out of memory sending a large number of PATH_CHALLENGE frames. The receiver is supposed to respond to each PATH_CHALLENGE frame with a PATH_RESPONSE frame. The attacker can prevent the receiver from sending out (the vast majority of) these PATH_RESPONSE 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/2023-12-18-exploiting-quics-path-validation/\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:H/PR:L/UI:N/S:U/C:L/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/quic-go/quic-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.40.0"
      }, {
        "fixed" : "0.40.1"
      } ]
    } ],
    "versions" : [ "0.40.0" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/quic-go/quic-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.39.0"
      }, {
        "fixed" : "0.39.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/quic-go/quic-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.38.0"
      }, {
        "fixed" : "0.38.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/quic-go/quic-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.37.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/security/advisories/GHSA-ppxx-5m9h-6vxf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49295"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/17fc98c2d81dbe685c19702dc694a9d606ac56dc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/21609ddfeff93668c7625a85eb09f1541fdad965"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/3a9c18bcd27a01c551ac9bf8bd2b4bded77c189a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/554d543b50b917369fb1394cc5396d928166cf49"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/6cc3d58935426191296171a6c0d1ee965e10534e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/9aaefe19fc3dc8c8917cc87e6128bb56d9e9e6cc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/a0ffa757499913f7be69aa78f573a6aee3430ae4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/quic-go/quic-go/commit/d7aa627ebde91cf799ada2a07443faa9b1e5abb8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/quic-go/quic-go"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G5RSHDTVMYAIGYVVFGKTMFHAZJMA3EVV"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZE7IOKXX5AATU2WR3V76X5Y3A44QAATG"
  }, {
    "type" : "WEB",
    "url" : "https://seemann.io/posts/2023-12-18-exploiting-quics-path-validation"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-10T15:08:40Z",
    "nvd_published_at" : "2024-01-10T22:15:50Z"
  }
}