Skip to content

HTTP/2 memory leak

High
tatsuhiro-t published GHSA-6pcr-v3hg-752p Oct 20, 2023

Package

No package listed

Affected versions

< 1.55.0

Patched versions

1.55.1

Description

Impact

nghttp2 fails to release memory when PUSH_PROMISE or HEADERS frame cannot be sent, and nghttp2_on_stream_close_callback fails with a fatal error. For example, if GOAWAY frame has been received, a HEADERS frame that opens new stream cannot be sent.

This issue has been made public via GHSA-jfxv-29pc-x22r, but it does not include nghttp2 in the affected products. This adovisory is retroactively published to cover nghttp2 as an affected product.

Patches

nghttp2 v1.55.1 or later mitigates this vulnerability.

Workarounds

Do not return a fatal error from nghttp2_on_stream_close_callback.

References

The following commit mitigates this vulnerability:

Severity

High
7.5
/ 10

CVSS base metrics

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

CVE ID

CVE-2023-35945

Weaknesses

No CWEs