GHSA-vx74-f528-fxqg: Github.com/nghttp2/nghttp2 Github.com/nghttp2/nghttp2 Has HTTP/2 Rapid Reset Vulnerability

HIGH
CVSS 7.5
CWE-400
Published
Advisory Summary

GHSA-vx74-f528-fxqg is a HIGH (CVSS 7.5) github.com/nghttp2/nghttp2 has http/2 rapid reset vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/nghttp2/nghttp2 libraries in the Go ecosystem. The issue involves github.com/nghttp2/nghttp2 has http/2 rapid reset. Remediation is available by upgrading affected packages to version 1.57.0.

GHSA-vx74-f528-fxqg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-vx74-f528-fxqg
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/nghttp2/nghttp2
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 GHSA-vx74-f528-fxqg

To remediate this vulnerability, upgrade all affected Github.com/nghttp2/nghttp2 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/nghttp2/nghttp2 fixed: 1.57.0
Upgrade github.com/nghttp2/nghttp2 to 1.57.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/nghttp2/nghttp2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-vx74-f528-fxqg, inspect your project dependencies for Github.com/nghttp2/nghttp2:

inspect dependencies for github.com/nghttp2/nghttp2

Analyze the terminal output to locate any version of Github.com/nghttp2/nghttp2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.57.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/nghttp2/nghttp2, 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 Rapidly creating and cancelling streams (HEADERS frame immediately followed by RST_STREAM) without bound cause denial of service. See https://www.cve.org/CVERecord?id=CVE-2023-44487 for details. ### Patches nghttp2 v1.57.0 mitigates this vulnerability by default. ### Workarounds If upgrading to nghttp2 v1.57.0 is not possible, implement `nghttp2_on_frame_recv_callback`, and check and count RST_STREAM frames. If excessive number of RST_STREAM are received, then take action, such as dropping connection silently, or call `nghttp2_submit_goaway` and gracefully terminate the connection. ### References The following commit mitigates this vulnerability: - https://github.com/nghttp2/nghttp2/commit/72b4af6143681f528f1d237b21a9a7aee1738832

GHSA-vx74-f528-fxqg Affected Github.com/nghttp2/nghttp2 Versions

1 component(s)
Fixed Versions:
1.57.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/nghttp2/nghttp2
Go
< 1.57.0
1.57.0

References

Frequently Asked Questions

What is GHSA-vx74-f528-fxqg?
GHSA-vx74-f528-fxqg is a security vulnerability in Github.com/nghttp2/nghttp2 involving github.com/nghttp2/nghttp2 has HTTP/2 Rapid Reset under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/nghttp2/nghttp2 versions are affected?
Affected versions include releases prior to 1.57.0 across affected packages: github.com/nghttp2/nghttp2.
What version fixes GHSA-vx74-f528-fxqg?
Upgrading to 1.57.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/nghttp2/nghttp2 affected?
Yes, github.com/nghttp2/nghttp2 is affected in releases prior to 1.57.0. Upgrade your dependency to 1.57.0 or later.
What is the CVSS score of GHSA-vx74-f528-fxqg?
GHSA-vx74-f528-fxqg 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 GHSA-vx74-f528-fxqg?
GHSA-vx74-f528-fxqg 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 GHSA-vx74-f528-fxqg?
Run the dependency tree command: 'inspect dependencies for github.com/nghttp2/nghttp2'. 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-vx74-f528-fxqg",
  "modified" : "2023-10-10T18:23:21Z",
  "published" : "2023-10-10T18:23:21Z",
  "aliases" : [ ],
  "summary" : "github.com/nghttp2/nghttp2 has HTTP/2 Rapid Reset",
  "details" : "### Impact\n\nRapidly creating and cancelling streams (HEADERS frame immediately followed by RST_STREAM) without bound cause denial of service.\n\nSee https://www.cve.org/CVERecord?id=CVE-2023-44487 for details.\n\n### Patches\n\nnghttp2 v1.57.0 mitigates this vulnerability by default.\n\n### Workarounds\n\nIf upgrading to nghttp2 v1.57.0 is not possible, implement `nghttp2_on_frame_recv_callback`, and check and count RST_STREAM frames.  If excessive number of RST_STREAM are received, then take action, such as dropping connection silently, or call `nghttp2_submit_goaway` and gracefully terminate the connection.\n\n### References\n\nThe following commit mitigates this vulnerability:\n\n- https://github.com/nghttp2/nghttp2/commit/72b4af6143681f528f1d237b21a9a7aee1738832\n",
  "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/nghttp2/nghttp2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.57.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nghttp2/nghttp2/security/advisories/GHSA-vx74-f528-fxqg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nghttp2/nghttp2/commit/72b4af6143681f528f1d237b21a9a7aee1738832"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nghttp2/nghttp2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nghttp2/nghttp2/releases/tag/v1.57.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-10T18:23:21Z",
    "nvd_published_at" : null
  }
}