Skip to content
Heist/ feed
Back to feed
High

Envoy vulnerable to HTTP/2 memory leak in nghttp2 codec

Type: advisorySources: OSV

Envoy is a cloud-native high-performance edge/middle/service proxy. Envoy’s HTTP/2 codec may leak a header map and bookkeeping structures upon receiving `RST_STREAM` immediately followed by the `GOAWAY` frames from an upstream server. In nghttp2, cleanup of pending requests due to receipt of the `GOAWAY` frame skips de-allocation of the bookkeeping structure and pending compressed header. The error return [code path] is taken if connection is already marked for not sending more requests due to `GOAWAY` frame. The clean-up code is right after the return statement, causing memory leak. Denial of service through memory exhaustion. This vulnerability was patched in versions(s) 1.26.3, 1.25.8, 1.24.9, 1.23.11.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-35945
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:00 UTC · Revision 1

Source evidence

Envoy vulnerable to HTTP/2 memory leak in nghttp2 codec

core-osv · Original source

Published 13 Jul 2023, 20:41 UTC

Envoy is a cloud-native high-performance edge/middle/service proxy. Envoy’s HTTP/2 codec may leak a header map and bookkeeping structures upon receiving `RST_STREAM` immediately followed by the `GOAWAY` frames from an upstream server. In nghttp2, cleanup of pending requests due to receipt of the `GOAWAY` frame skips de-allocation of the bookkeeping structure and pending compressed header. The error return [code path] is taken if connection is already marked for not sending more requests due to `GOAWAY` frame. The clean-up code is right after the return statement, causing memory leak. Denial of service through memory exhaustion. This vulnerability was patched in versions(s) 1.26.3, 1.25.8, 1.24.9, 1.23.11.

osv:CVE-2023-35945
Complete source record
{
  "id": "ae1d6e3e00cf8ccb196348b058b6237168d6a8a7c8451b0776a5f877775b56a2",
  "url": "https://osv.dev/vulnerability/CVE-2023-35945",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Envoy vulnerable to HTTP/2 memory leak in nghttp2 codec",
    "summary": "Envoy is a cloud-native high-performance edge/middle/service proxy. Envoy’s HTTP/2 codec may leak a header map and bookkeeping structures upon receiving `RST_STREAM` immediately followed by the `GOAWAY` frames from an upstream server. In nghttp2, cleanup of pending requests due to receipt of the `GOAWAY` frame skips de-allocation of the bookkeeping structure and pending compressed header. The error return [code path] is taken if connection is already marked for not sending more requests due to `GOAWAY` frame. The clean-up code is right after the return statement, causing memory leak. Denial of service through memory exhaustion. This vulnerability was patched in versions(s) 1.26.3, 1.25.8, 1.24.9, 1.23.11.",
    "evidence": "osv:CVE-2023-35945",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-35945",
      "aliases": [
        "BIT-envoy-2023-35945",
        "CVE-2023-35945",
        "GHSA-jfxv-29pc-x22r"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/envoyproxy/envoy",
              "type": "GIT",
              "events": [
                {
                  "introduced": "51964702956d64adcd1df6b8ea132e863fe78e74"
                },
                {
                  "fixed": "ea9d25e93cef74b023c95ca1a3f79449cdf7fa9a"
                },
                {
                  "introduced": "9184b84cd0dcb3a6c57eb44b177d91c70e1a0901"
                },
                {
                  "fixed": "63ec332cbacd277f8937b4eca71f8e1629e4c1f7"
                },
                {
                  "introduced": "15baf56003f33a07e0ab44f82f75a660040db438"
                },
                {
                  "fixed": "0b7452dd17625093ff1646b6b22b36f35bd9ee56"
                },
                {
                  "introduced": "ce49c7f65668a22b80d1e83c35d170741bb8d46a"
                },
                {
                  "fixed": "84dd90f2220ca8661b67d7efa1f93d67e1218222"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.26.0"
                      },
                      {
                        "fixed": "1.26.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.25.0"
                      },
                      {
                        "fixed": "1.25.8"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.24.0"
                      },
                      {
                        "fixed": "1.24.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "1.23.0"
                      },
                      {
                        "fixed": "1.23.11"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/nghttp2/nghttp2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "781057e15626bf403c8739c25166ad123aa17ff3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:nghttp2:nghttp2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.55.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.24.8",
            "v1.26.2",
            "v1.23.10",
            "v1.25.7",
            "v1.25.6",
            "v1.24.7",
            "v1.26.1",
            "v1.23.9",
            "v1.25.5",
            "v1.24.6",
            "v1.23.8",
            "v1.26.0",
            "v1.25.4",
            "v1.23.7",
            "v1.24.5",
            "v1.25.3",
            "v1.23.6",
            "v1.24.4",
            "v1.25.2",
            "v1.23.5",
            "v1.24.3",
            "v1.24.2",
            "v1.23.4",
            "v1.25.1",
            "v1.25.0",
            "v1.24.1",
            "v1.23.3",
            "v1.23.2",
            "v1.24.0",
            "v1.23.1",
            "v1.23.0",
            "v1.55.0",
            "v1.54.0",
            "v1.53.0",
            "v1.52.0",
            "v1.51.0",
            "v1.50.0",
            "v1.49.0",
            "v1.48.0",
            "v1.47.0",
            "v1.46.0",
            "v1.45.0",
            "v1.44.0",
            "v1.43.0",
            "v1.42.0",
            "v1.41.0",
            "v1.40.0",
            "v1.39.0",
            "v1.38.0",
            "v1.37.0",
            "v1.36.0",
            "v1.35.0",
            "v1.34.0",
            "v1.33.0",
            "v1.32.0",
            "v1.31.0",
            "v1.30.0",
            "v1.29.0",
            "v1.28.0",
            "v1.27.0",
            "v1.22.0",
            "v1.21.0",
            "v1.20.0",
            "v1.19.0",
            "v1.18.0",
            "v1.17.0",
            "v1.16.0",
            "v1.15.0",
            "v1.14.0",
            "v1.13.0",
            "v1.12.0",
            "v1.11.0",
            "v1.10.0",
            "v1.9.1",
            "v1.9.0",
            "v1.8.0",
            "v1.7.0",
            "v1.6.0",
            "v1.5.0",
            "v1.4.0",
            "v1.3.4",
            "v1.3.3",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.2",
            "v1.1.1",
            "v1.1.0",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v0.7.15",
            "v0.7.14",
            "v0.7.13",
            "v0.7.12",
            "v0.7.11",
            "v0.7.10",
            "v0.7.9",
            "v0.7.8",
            "v0.7.7",
            "v0.7.6",
            "v0.7.5",
            "v0.7.4",
            "v0.7.3",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.7",
            "v0.6.6",
            "v0.6.5",
            "v0.6.4",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "v0.5.1",
            "v0.5.0",
            "v0.4.1",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-35945.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.200251871Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-943925.html",
        "https://github.com/nghttp2/nghttp2/blob/e7f59406556c80904b81b593d38508591bb7523a/lib/nghttp2_session.c#L3346",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/35xxx/CVE-2023-35945.json",
        "https://github.com/envoyproxy/envoy/security/advisories/GHSA-jfxv-29pc-x22r",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-35945"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-400"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/35xxx/CVE-2023-35945.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-35945",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489525,
  "published_at": "2023-07-13T20:41:15.69+00:00"
}