CVE-2023-35945
Envoy vulnerable to HTTP/2 memory leak in nghttp2 codec
Reported by github_m · Published July 13, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ecs-service-connect-agent | Amazon Linux | v1.26.4.0-1.amzn2023 |
| nghttp2 | Amazon Linux | 1.41.0-1.amzn2.0.1 |
| libnghttp2-devel | Amazon Linux | 1.41.0-1.amzn2.0.1 |
| libnghttp2 | Amazon Linux | 1.41.0-1.amzn2.0.1 |
| nghttp2 | nghttp2 | 1.55.1 |
| envoy | envoyproxy | 1.26.3, 1.25.8, 1.24.9, 1.23.11 |
| envoy | Bitnami | 1.26.3, 1.25.8, 1.24.9, 1.23.11 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| envoyproxy | envoy | >= 1.26.0, < 1.26.3, >= 1.25.0, < 1.25.8, >= 1.24.0, < 1.24.9 |
| amazon:2023 | ecs-service-connect-agent | 0 |
| amazon:2 | nghttp2 | 0 |
| amazon:2 | libnghttp2-devel | 0 |
| amazon:2 | libnghttp2 | 0 |
| envoyproxy | envoy | 1.23.0, 1.24.0, 1.25.0 |
| alpine | nghttp2 | 0, 0, 0 |
| amazon:2023 | libnghttp2-devel | 0 |
| amazon:2023 | nodejs-libs | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | libnghttp2 | 0 |
| amazon:2023 | nodejs-docs | 0 |
| amazon:2023 | v8-devel | 0 |
| amazon:2023 | npm | 0 |
| amazon:2023 | nodejs-devel | 0 |
| amazon:2023 | nghttp2 | 0 |
| amazon:2023 | nodejs-full-i18n | 0 |
| amazon:2023 | nodejs | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
Timeline
- Jul 12, 2023 CVE Published
- Jul 14, 2023 EPSS Score (30 in total, the first dated here)
- Apr 28, 2025 PoC Published (3 in total, the first dated here)
- Feb 11, 2026 Security Advisory (7 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (6 in total, the first dated here)
- Aug 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-35945
vulnetix vdb fixes CVE-2023-35945
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-35945/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/envoyproxy/envoy/security/advisories/GHSA-jfxv-29pc-x22r x_refsource_CONFIRM
- https://github.com/nghttp2/nghttp2/blob/e7f59406556c80904b81b593d38508591bb7523a/lib/nghttp2_session.c#L3346 x_refsource_MISC
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html url