CVE-2021-31618
NULL pointer dereference on specially crafted HTTP/2 request
Check your servers for CVE-2021-31618
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-2021-31618 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Apache HTTP Server protocol handler for the HTTP/2 protocol checks received request headers against the size limitations as configured for the server and used for the HTTP/1 protocol as well. On violation of these restrictions and HTTP response is sent to the client with a status code indicating why the request was rejected. This rejection response was not fully initialised in the HTTP/2 protocol handler if the offending header was the very first one received or appeared in a a footer. This led to a NULL pointer dereference on initialised memory, crashing reliably the child process. Since such a triggering HTTP/2 request is easy to craft and submit, this can be exploited to DoS the server. This issue affected mod_http2 1.15.17 and Apache HTTP Server version 2.4.47 only. Apache HTTP Server 2.4.47 was never released.
Exploitation
EPSS 57.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 20 May 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
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Apache HTTP Server |
affected 2.4.47
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) 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 PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-31618 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-31618RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-31618Alpine
apk list --installed | grep -i PACKAGEWith 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-2021-31618
trivy image --scanners vuln IMAGE | grep CVE-2021-31618
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
Advisories
- FEDORA-2021-051639aad4 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-181f29c392 lists.fedoraproject.org · vendor advisory
- DSA-4937 debian.org · vendor advisory
- GLSA-202107-38 security.gentoo.org · vendor advisory
Other references
- http://httpd.apache.org/security/vulnerabilities_24.html httpd.apache.org
- [oss-security] 20210609 CVE-2021-31618: Apache httpd: NULL pointer dereference on specially crafted HTTP/2 request openwall.com · mailing list
- https://seclists.org/oss-sec/2021/q2/206 seclists.org
- [httpd-cvs] 20210615 svn commit: r1890801 - /httpd/site/trunk/content/security/json/CVE-2021-31618.json lists.apache.org · mailing list
- [httpd-cvs] 20210615 svn commit: r1075782 - in /websites/staging/httpd/trunk/content: ./… lists.apache.org · mailing list
- [debian-lts-announce] 20210709 [SECURITY] [DLA 2706-1] apache2 security update lists.debian.org · mailing list
- https://www.oracle.com/security-alerts/cpuoct2021.html oracle.com
- https://security.netapp.com/advisory/ntap-20210727-0008/ security.netapp.com
- [oss-security] 20240313 Re: CVE-2021-31618: Apache httpd: NULL pointer dereference on specially crafted HTTP/2 request openwall.com · mailing list
Source: the record CVE-2021-31618 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse