CVE-2024-2398
HTTP/2 push headers memory-leak
Check your servers for CVE-2024-2398
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-2398 affects curl, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
When an application tells libcurl it wants to allow HTTP/2 server push, and the amount of received headers for the push surpasses the maximum allowed limit (1000), libcurl aborts the server push. When aborting, libcurl inadvertently does not free all the previously allocated headers and instead leaks the memory. Further, this error condition fails silently and is therefore not easily detected by an application.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 36.0%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 98.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 26 Apr 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| curl |
affected from 8.6.0 up to and including 8.6.0 affected from 8.5.0 up to and including 8.5.0 affected from 8.4.0 up to and including 8.4.0 affected from 8.3.0 up to and including 8.3.0 affected from 8.2.1 up to and including 8.2.1 affected from 8.2.0 up to and including 8.2.0 affected from 8.1.2 up to and including 8.1.2 affected from 8.1.1 up to and including 8.1.1 affected from 8.1.0 up to and including 8.1.0 affected from 8.0.1 up to and including 8.0.1 affected from 8.0.0 up to and including 8.0.0 affected from 7.88.1 up to and including 7.88.1 affected from 7.88.0 up to and including 7.88.0 affected from 7.87.0 up to and including 7.87.0 affected from 7.86.0 up to and including 7.86.0 affected from 7.85.0 up to and including 7.85.0 affected from 7.84.0 up to and including 7.84.0 affected from 7.83.1 up to and including 7.83.1 affected from 7.83.0 up to and including 7.83.0 affected from 7.82.0 up to and including 7.82.0 affected from 7.81.0 up to and including 7.81.0 affected from 7.80.0 up to and including 7.80.0 affected from 7.79.1 up to and including 7.79.1 affected from 7.79.0 up to and including 7.79.0 affected from 7.78.0 up to and including 7.78.0
and 52 more entries
Other versions: unaffected
|
Is my server affected?
Find the installed version of curl and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i curl
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-2398 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-2398RHEL, Rocky, Alma, Fedora
rpm -q curl
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-2398Alpine
apk list --installed | grep -i curlWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-2398
trivy image --scanners vuln IMAGE | grep CVE-2024-2398
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- json curl.se
- www curl.se
- issue hackerone.com
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GMD6UYKCCRCYETWQZUJ65ZRFULT6SHLI/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2D44YLAUFJU6BZ4XFG2FYV7SBKXB5IZ6/ lists.fedoraproject.org
- http://www.openwall.com/lists/oss-security/2024/03/27/3 openwall.com
- https://security.netapp.com/advisory/ntap-20240503-0009/ security.netapp.com
- https://support.apple.com/kb/HT214119 support.apple.com
- https://support.apple.com/kb/HT214118 support.apple.com
- https://support.apple.com/kb/HT214120 support.apple.com
- http://seclists.org/fulldisclosure/2024/Jul/20 seclists.org
- http://seclists.org/fulldisclosure/2024/Jul/18 seclists.org
4 more
- http://seclists.org/fulldisclosure/2024/Jul/19 seclists.org
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-417159.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html cert-portal.siemens.com
Source: the record CVE-2024-2398 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse