HTTP/2 push headers memory-leak
Description
libcurl leaks memory when aborting HTTP/2 server push due to excessive headers, enabling potential denial of service via memory exhaustion.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
libcurl leaks memory when aborting HTTP/2 server push due to excessive headers, enabling potential denial of service via memory exhaustion.
Vulnerability
In libcurl, when an application enables HTTP/2 server push (via CURLOPT_PUSHFUNCTION), and the server sends a PUSH_PROMISE frame with more than 1000 headers, libcurl aborts the push but fails to free previously allocated header memory, resulting in a memory leak. This affects curl versions 7.44.0 through 8.6.0 built with HTTP/2 support [4].
Exploitation
An attacker controlling an HTTP/2 server can send a crafted push promise with an excessive number of headers to trigger the leak. The client application must have enabled HTTP/2 server push (not the default). No authentication or user interaction is required, and the error is silent, making detection difficult [4].
Impact
Repeated exploitation can exhaust the memory of the process using libcurl, leading to a denial of service. No other impacts (such as code execution or information disclosure) are described [4].
Mitigation
The vulnerability is fixed in curl version 8.7.0, released March 27, 2024. As a workaround, applications can disable HTTP/2 server push by returning CURL_PUSH_DENY from the push callback, or disable HTTP/2 entirely. Users should upgrade libcurl or apply the patch [4].
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
43- osv-coords41 versionspkg:apk/chainguard/curlpkg:apk/chainguard/curl-devpkg:apk/chainguard/curl-docpkg:apk/chainguard/curl-oci-entrypointpkg:apk/chainguard/curl-staticpkg:apk/chainguard/libcurl4pkg:apk/chainguard/libcurl-openssl4pkg:apk/wolfi/curlpkg:apk/wolfi/curl-devpkg:apk/wolfi/curl-docpkg:apk/wolfi/curl-oci-entrypointpkg:apk/wolfi/curl-staticpkg:apk/wolfi/libcurl4pkg:apk/wolfi/libcurl-openssl4pkg:rpm/almalinux/curlpkg:rpm/almalinux/curl-minimalpkg:rpm/almalinux/libcurlpkg:rpm/almalinux/libcurl-develpkg:rpm/almalinux/libcurl-minimalpkg:rpm/opensuse/curl&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/curl&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/curl&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Installer%20Updates%2015%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Installer%20Updates%2015%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/curl&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/curl&distro=SUSE%20Manager%20Server%204.3
< 8.7.1-r0+ 40 more
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 7.76.1-29.el9_4.1
- (no CPE)range: < 7.76.1-29.el9_4.1
- (no CPE)range: < 7.76.1-29.el9_4.1
- (no CPE)range: < 7.76.1-29.el9_4.1
- (no CPE)range: < 7.76.1-29.el9_4.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.7.1-1.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 7.66.0-150200.4.69.1
- (no CPE)range: < 7.66.0-150200.4.69.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-11.86.2
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-11.86.2
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-11.86.2
- (no CPE)range: < 8.6.0-3.1
- (no CPE)range: < 8.0.1-150400.5.44.1
- (no CPE)range: < 8.0.1-150400.5.44.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
13- seclists.org/fulldisclosure/2024/Jul/18mitre
- seclists.org/fulldisclosure/2024/Jul/19mitre
- seclists.org/fulldisclosure/2024/Jul/20mitre
- www.openwall.com/lists/oss-security/2024/03/27/3mitre
- curl.se/docs/CVE-2024-2398.htmlmitre
- curl.se/docs/CVE-2024-2398.jsonmitre
- hackerone.com/reports/2402845mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2D44YLAUFJU6BZ4XFG2FYV7SBKXB5IZ6/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GMD6UYKCCRCYETWQZUJ65ZRFULT6SHLI/mitre
- security.netapp.com/advisory/ntap-20240503-0009/mitre
- support.apple.com/kb/HT214118mitre
- support.apple.com/kb/HT214119mitre
- support.apple.com/kb/HT214120mitre
News mentions
0No linked articles in our index yet.