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

Published Jun 4, 2021
·
Updated

A null pointer de-reference was found in the way httpd handled specially crafted HTTP/2 request. A remote attacker could use this flaw to crash the httpd child process, causing temporary denial of service.

Other sources

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 initialized in the HTTP/2 protocol handler if the offending header was the very first one received or appeared in a footer. This led to a NULL pointer dereference on initialized 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.

References:

https://httpd.apache.org/security/vulnerabilities24.html

Upstream patch:

https://github.com/apache/httpd/commit/f990e5ecad40b100a8a5c7c1033c46044a9cb244 http://svn.apache.org/viewvc?view=revision&revision=1889759

Red Hat

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 modhttp2 1.15.17 and Apache HTTP Server version 2.4.47 only. Apache HTTP Server 2.4.47 was never released.

Affected Software

12 affected componentsFixes available
redhat/http<2.4.48
2.4.48
Apache HTTP Server=1.15.17
Apache HTTP Server=2.4.47
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Oracle Enterprise Manager Ops Center=12.4.0.0
Oracle Instantis Enterprisetrack=17.1
Oracle Instantis Enterprisetrack=17.2
Oracle Instantis Enterprisetrack=17.3
Oracle ZFS Storage Appliance Kit=8.8

Event History

Jun 4, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeakness
Jun 15, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-31618?

CVE-2021-31618 is a null pointer de-reference vulnerability found in the Apache HTTP Server protocol handler for the HTTP/2 protocol.

2

What is the severity of CVE-2021-31618?

The severity of CVE-2021-31618 is high, with a CVSS severity score of 7.5.

3

Which software versions are affected by CVE-2021-31618?

The Apache HTTP Server versions 2.4.47 and 2.4.48, as well as some specific versions of Fedora, Debian, Oracle Enterprise Manager Ops Center, Oracle Instantis Enterprisetrack, and Oracle ZFS Storage Appliance Kit are affected.

4

How does CVE-2021-31618 impact the Apache HTTP Server?

CVE-2021-31618 allows an attacker to exploit a null pointer de-reference vulnerability, potentially causing a denial-of-service condition by crashing the server process.

5

How can I mitigate CVE-2021-31618?

To mitigate CVE-2021-31618, it is recommended to upgrade to Apache HTTP Server version 2.4.49 or apply the necessary patches provided by the distribution vendor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203