CVE-2021-31618NULL pointer dereference on specially crafted HTTP/2 request
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | apache2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | apache2 | Fix pending | ||
| Debian 14 | apache2 | Fixed | 2.4.46-5 | DEBIAN-CVE-2021-31618 |
| Debian 13 | apache2 | Fixed | 2.4.46-5 | DEBIAN-CVE-2021-31618 |
| Debian 12 | apache2 | Fixed | 2.4.46-5 | DEBIAN-CVE-2021-31618 |
| Red Hat Enterprise Linux 9 | httpd | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-core | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-filesystem | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_ldap | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_lua | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_proxy_html | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_session | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_ssl | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-filesystem | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_http2 | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_md | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_proxy_html | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_session | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_ssl | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_proxy_html | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_session | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_ssl | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 6 | mod_ssl | Not affected | ||
| Alpine Linux 3.24 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.23 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.22 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.21 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.20 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.19 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.18 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.17 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.16 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.15 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.14 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.13 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.12 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.11 | apache2 | Fixed | 2.4.48-r0 | ALPINE-CVE-2021-31618 |
| Alpine Linux 3.10 | apache2 | Fixed | 2.4.48-r0 | ALPINE-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.
- Apache Software Foundation Apache HTTP Server: affected: 2.4.47
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:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2021/dsa-4937 (vendor-advisory)
- https://security.gentoo.org/glsa/202107-38 (vendor-advisory)
References
- http://httpd.apache.org/security/vulnerabilities_24.html
- http://www.openwall.com/lists/oss-security/2021/06/10/9
- https://seclists.org/oss-sec/2021/q2/206
- https://lists.apache.org/thread.html/r14b66ef0f4f569fd515a3f96cd4eb58bd9a8ff525cc326bb0359664f%40%3Ccvs.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r783b6558abf3305b17ea462bed4bd66d82866438999bf38cef6d11d1%40%3Ccvs.httpd.apache.org%3E
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2NKJ3ZA3FTSZ2QBBPKS6BYGAWYRABNQQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A73QJ4HPUMU26I6EULG6SCK67TUEXZYR/
- https://lists.debian.org/debian-lts-announce/2021/07/msg00006.html
- https://www.debian.org/security/2021/dsa-4937
- https://security.gentoo.org/glsa/202107-38
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.netapp.com/advisory/ntap-20210727-0008/
- http://www.openwall.com/lists/oss-security/2024/03/13/2
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.