CVE-2021-31618 NULL pointer dereference on specially crafted HTTP/2 request
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Apache HTTP ServerDebian
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.
Upgrade path
24 packages: 18 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/apache2(Alpine v3.10) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.11) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.12) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.13) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.14) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.15) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.16) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.17) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.18) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.19) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.20) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.21) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.22) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.23) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| alpine/apache2(Alpine v3.24) | < 2.4.48-r0 | 2.4.48-r0 | Fixed |
| debian/apache2(Debian 12) | < 2.4.46-5 | 2.4.46-5 | Fixed |
| debian/apache2(Debian 13) | < 2.4.46-5 | 2.4.46-5 | Fixed |
| debian/apache2(Debian 14) | < 2.4.46-5 | 2.4.46-5 | Fixed |
| Apache HTTP Server | = 1.15.17; = 2.4.47 | No fix listed | Versions listed |
| debian linux | = 9.0; = 10.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 33; = 34 | No fix listed | Versions listed |
| oracle enterprise manager ops center | = 12.4.0.0 | No fix listed | Versions listed |
| oracle instantis enterprisetrack | = 17.1; = 17.2; = 17.3 | No fix listed | Versions listed |
| oracle zfs storage appliance kit | = 8.8 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/apache2(Debian:12) | < 2.4.46-5 | 2.4.46-5 |
| debian/apache2(Debian:13) | < 2.4.46-5 | 2.4.46-5 |
| debian/apache2(Debian:14) | < 2.4.46-5 | 2.4.46-5 |
| Apache HTTP Server | = 1.15.17 | No fix listed |
| Apache HTTP Server | = 2.4.47 | No fix listed |
| fedoraproject fedora | = 33 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| oracle enterprise manager ops center | = 12.4.0.0 | No fix listed |
| oracle instantis enterprisetrack | = 17.1 | No fix listed |
| oracle instantis enterprisetrack | = 17.2 | No fix listed |
| oracle instantis enterprisetrack | = 17.3 | No fix listed |
| oracle zfs storage appliance kit | = 8.8 | No fix listed |
| alpine/apache2(Alpine:v3.10) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.11) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.12) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.13) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.14) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.15) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.16) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.17) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.18) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.19) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.20) | < 2.4.48-r0 | 2.4.48-r0 |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/apache2(Alpine:v3.21) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.22) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.23) | < 2.4.48-r0 | 2.4.48-r0 |
| alpine/apache2(Alpine:v3.24) | < 2.4.48-r0 | 2.4.48-r0 |
References
- Debian Security Tracker CVE-2021-31618 vendor-advisory
- httpd.apache.org release-notes vendor-advisory
- [oss-security] 20210609 CVE-2021-31618: Apache httpd: NULL pointer dereference on specially crafted HTTP/2 request mailing-list third-party-advisory
- [oss-security] 20240313 Re: CVE-2021-31618: Apache httpd: NULL pointer dereference on specially crafted HTTP/2 request mailing-list
- [httpd-cvs] 20210615 svn commit: r1890801 - /httpd/site/trunk/content/security/json/CVE-2021-31618.json mailing-list
- [httpd-cvs] 20210615 svn commit: r1075782 - in /websites/staging/httpd/trunk/content: ./ security/json/CVE-2021-31618.json security/vulnerabilities_24.html mailing-list
- [debian-lts-announce] 20210709 [SECURITY] [DLA 2706-1] apache2 security update mailing-list third-party-advisory
- FEDORA-2021-051639aad4 vendor-advisory
- FEDORA-2021-181f29c392 vendor-advisory
- seclists.org mailing-list third-party-advisory
- GLSA-202107-38 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- DSA-4937 third-party-advisory vendor-advisory
- www.oracle.com patch third-party-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking