CVEfocus › CVE database › CVE-2021-31618

CVE-2021-31618NULL pointer dereference on specially crafted HTTP/2 request

CVSS 7.5 HighEPSS 57.2% (in the top 1% of all CVEs)Published 2021-06-15Updated 2024-08-03Assigner: apache

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.

CWE-476

What to do

Likely to be exploited: EPSS gives a 57% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

18Fixed
1Fix pending
36Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04apache2Not affected
vulnerable_code_not_present
Ubuntu 16.04apache2Fix pending
Debian 14apache2Fixed2.4.46-5DEBIAN-CVE-2021-31618
Debian 13apache2Fixed2.4.46-5DEBIAN-CVE-2021-31618
Debian 12apache2Fixed2.4.46-5DEBIAN-CVE-2021-31618
Red Hat Enterprise Linux 9httpdNot affected
Red Hat Enterprise Linux 9httpd-coreNot affected
Red Hat Enterprise Linux 9httpd-develNot affected
Red Hat Enterprise Linux 9httpd-filesystemNot affected
Red Hat Enterprise Linux 9httpd-manualNot affected
Red Hat Enterprise Linux 9httpd-toolsNot affected
Red Hat Enterprise Linux 9mod_ldapNot affected
Red Hat Enterprise Linux 9mod_luaNot affected
Red Hat Enterprise Linux 9mod_proxy_htmlNot affected
Red Hat Enterprise Linux 9mod_sessionNot affected
Red Hat Enterprise Linux 9mod_sslNot affected
Red Hat Enterprise Linux 8httpdNot affected
Red Hat Enterprise Linux 8httpd-develNot affected
Red Hat Enterprise Linux 8httpd-filesystemNot affected
Red Hat Enterprise Linux 8httpd-manualNot affected
Red Hat Enterprise Linux 8httpd-toolsNot affected
Red Hat Enterprise Linux 8mod_http2Not affected
Red Hat Enterprise Linux 8mod_ldapNot affected
Red Hat Enterprise Linux 8mod_mdNot affected
Red Hat Enterprise Linux 8mod_proxy_htmlNot affected
Red Hat Enterprise Linux 8mod_sessionNot affected
Red Hat Enterprise Linux 8mod_sslNot affected
Red Hat Enterprise Linux 7httpdNot affected
Red Hat Enterprise Linux 7httpd-develNot affected
Red Hat Enterprise Linux 7httpd-manualNot affected
Red Hat Enterprise Linux 7httpd-toolsNot affected
Red Hat Enterprise Linux 7mod_ldapNot affected
Red Hat Enterprise Linux 7mod_proxy_htmlNot affected
Red Hat Enterprise Linux 7mod_sessionNot affected
Red Hat Enterprise Linux 7mod_sslNot affected
Red Hat Enterprise Linux 6httpdNot affected
Red Hat Enterprise Linux 6httpd-develNot affected
Red Hat Enterprise Linux 6httpd-manualNot affected
Red Hat Enterprise Linux 6httpd-toolsNot affected
Red Hat Enterprise Linux 6mod_sslNot affected
Alpine Linux 3.24apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.23apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.22apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.21apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.20apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.19apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.18apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.17apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.16apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.15apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.14apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.13apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.12apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.11apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618
Alpine Linux 3.10apache2Fixed2.4.48-r0ALPINE-CVE-2021-31618

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: On unpatched servers, the `h2` protocol can be disabled by removing it from the `Protocols` configuration. If the `h2` protocol is not enabled, the server is not affected by this vulnerability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.