CVE-2023-35945
envoy: HTTP/2 memory leak in nghttp2 codec
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-400, CWE-459
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | envoy | <1.23.11>=1.24.0, <1.24.9>=1.25.0, <1.25.8>=1.26.0, <1.26.3 | 1.23.111.24.91.25.81.26.3 |
| Julia | nghttp2_jll | <1.58.0+0 | 1.58.0+0 |
Open a package to see all its vulnerabilities.
Operating systems · 16 fixes
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nghttp2 +1 | 1.57.0-1.ph4 |
| 5.0 | nghttp2 +1 | 1.57.0-1.ph5 |
SUSE Linux Enterprise 3 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libnghttp2-14 +2 | 1.39.2-3.10.1 | SUSE-SU-2023:3842-1 |
| 15.4 | libnghttp2-14 +4 | 1.40.0-150200.9.1 | SUSE-SU-2023:3997-1 |
| 15.5 | libnghttp2-14 +4 | 1.40.0-150200.9.1 | SUSE-SU-2023:3997-1 |
SUSE Linux Enterprise Micro 5 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | libnghttp2-14 | 1.40.0-150200.9.1 | SUSE-SU-2023:3997-1 |
| 5.2 | libnghttp2-14 | 1.40.0-150200.9.1 | SUSE-SU-2023:3997-1 |
| 5.3 | libnghttp2-14 | 1.40.0-150200.9.1 | SUSE-SU-2023:3997-1 |
| 5.4 | libnghttp2-14 | 1.40.0-150200.9.1 | SUSE-SU-2023:3997-1 |
| 5.5 | libnghttp2-14 | 1.40.0-150200.9.1 | SUSE-SU-2023:3997-1 |
amazon linux 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | libnghttp2 +5 | 1.55.1-1.amzn2023.0.1 |
| 2023 | nodejs +7 | 1:18.12.1-1.amzn2023.0.9 |
| 2023 | npm | 1:8.19.2-1.18.12.1.1.amzn2023.0.9 |
| 2023 | v8-devel | 2:10.2.154.15-1.18.12.1.1.amzn2023.0.9 |
| 2023 | ecs-service-connect-agent | v1.26.4.0-1.amzn2023 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libnghttp2-14 +3 | 1.55.1-1.1 | openSUSE-SU-2024:13062-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-35945
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-943925.html
- github.com https://github.com/envoyproxy/envoy/security/advisories/GHSA-jfxv-29pc-x22r
- github.com https://github.com/nghttp2/nghttp2/blob/e7f59406556c80904b81b593d38508591bb7523a/lib/nghttp2_session.c#L3346
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-35945
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-35945
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.