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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 57.22% (percentile 99, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2021-06-15T00:00:00.000Z
- **Modified:** 2026-06-17T03:52:05.437Z

## Who should check

- Anyone running Apache Software Foundation Apache HTTP Server 2.4.47

## 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.

## Affected and fixed versions

- Apache Software Foundation Apache HTTP Server: 2.4.47 (cvelist)

## Mitigation

- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-31618. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-31618.md
Affected: Apache Software Foundation Apache HTTP Server 2.4.47
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Apache Software Foundation Apache HTTP Server: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-31618 being exploited?

There is no confirmed exploitation: CVE-2021-31618 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 57.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-31618?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

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

Apache Software Foundation Apache HTTP Server 2.4.47.

### Is there a fix for CVE-2021-31618?

No fixed version is listed in the sources yet. Vendor 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.

### How do I check if I'm affected by CVE-2021-31618?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <http://httpd.apache.org/security/vulnerabilities_24.html>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2NKJ3ZA3FTSZ2QBBPKS6BYGAWYRABNQQ/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A73QJ4HPUMU26I6EULG6SCK67TUEXZYR/>
- vendor: <https://www.debian.org/security/2021/dsa-4937>
- vendor: <https://security.gentoo.org/glsa/202107-38>
- patch: <https://www.oracle.com/security-alerts/cpuoct2021.html>
- other: <http://www.openwall.com/lists/oss-security/2021/06/10/9>
- other: <https://seclists.org/oss-sec/2021/q2/206>
- other: <https://lists.apache.org/thread.html/r14b66ef0f4f569fd515a3f96cd4eb58bd9a8ff525cc326bb0359664f%40%3Ccvs.httpd.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r783b6558abf3305b17ea462bed4bd66d82866438999bf38cef6d11d1%40%3Ccvs.httpd.apache.org%3E>
- other: <https://lists.debian.org/debian-lts-announce/2021/07/msg00006.html>
- other: <https://security.netapp.com/advisory/ntap-20210727-0008/>
- other: <http://www.openwall.com/lists/oss-security/2024/03/13/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-31618>

HTML: <https://flawdb.com/CVE-2021-31618> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-31618>
