CVE-2016-8740
High · 7.5CVSS
7.5
EPSS
79.1%
Published
Dec 5, 2016
CISA due date
—
Cloudanix analysis
Older versions of the Apache web server can be overwhelmed and taken offline when attackers send specially crafted web requests that use up all available memory.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The mod_http2 module fails to enforce limits on request-header length when handling CONTINUATION frames in HTTP/2 (h2 or h2c), allowing unbounded memory allocation that leads to denial of service.
Why it matters to the business
Successful exploitation can render web servers unavailable, disrupting online services and requiring administrative intervention to recover; while the issue is old, public exploits increase the risk of opportunistic attacks against unpatched deployments.
How an attack unfolds
An attacker establishes an HTTP/2 connection using the h2 or h2c protocol and sends a request composed of numerous CONTINUATION frames that omit the END_HEADERS flag, causing the server to allocate memory for each frame without bound until resources are exhausted.
How to fix it
Upgrade Apache HTTP Server to a build containing commit 29c63b786ae028d82405421585e91283c8fa0da3 or a later patched release; disable the h2 or h2c protocols if HTTP/2 support is not required.
How to confirm the fix worked
Confirm the running Apache version is newer than 2.4.23 and includes the referenced commit; test by replaying a request with excessive CONTINUATION frames and verifying that header-length limits are enforced without memory growth.
Typical attack path
- Establish HTTP/2 connection with Protocols set to include h2 or h2c
- Transmit initial HEADERS frame followed by many CONTINUATION frames
- Omit END_HEADERS flag on all but the final frame
- Continue sending frames to trigger repeated memory allocations
- Observe server memory exhaustion and service degradation
How to detect it
Inspect Apache access and error logs for HTTP/2 sessions containing abnormally high numbers of CONTINUATION frames; correlate with process memory usage spikes or out-of-memory events on the server.
What your security team should do
- Prioritize upgrade of all affected Apache HTTP Server instances to a fixed version
- Review and restrict Protocols directive to remove h2/h2c where unnecessary
- Implement network-level rate limiting on HTTP/2 traffic as a temporary control
- Monitor EPSS score and exploit availability for any change in threat level
The record
The mod_http2 module in the Apache HTTP Server 2.4.17 through 2.4.23, when the Protocols configuration includes h2 or h2c, does not restrict request-header length, which allows remote attackers to cause a denial of service (memory consumption) via crafted CONTINUATION frames in an HTTP/2 request.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | apache2 | 0 | 2.4.25-1 |
| Debian:12 | apache2 | 0 | 2.4.25-1 |
| Debian:13 | apache2 | 0 | 2.4.25-1 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-httpd | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-httpd-debuginfo | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-httpd-devel | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-httpd-libs | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-httpd-manual | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-httpd-selinux | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-httpd-tools | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-mod_ldap | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-mod_proxy_html | 0 | 1:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-mod_security | 0 | 0:2.9.1-19.GA.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-mod_security-debuginfo | 0 | 0:2.9.1-19.GA.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-mod_session | 0 | 0:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-mod_ssl | 0 | 1:2.4.23-120.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-openssl | 0 | 1:1.0.2h-13.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-openssl-debuginfo | 0 | 1:1.0.2h-13.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-openssl-devel | 0 | 1:1.0.2h-13.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-openssl-libs | 0 | 1:1.0.2h-13.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-openssl-perl | 0 | 1:1.0.2h-13.jbcs.el6 |
| Red Hat:jboss_core_services:1::el6 | jbcs-httpd24-openssl-static | 0 | 1:1.0.2h-13.jbcs.el6 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-httpd | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-httpd-debuginfo | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-httpd-devel | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-httpd-libs | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-httpd-manual | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-httpd-selinux | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-httpd-tools | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-mod_ldap | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-mod_proxy_html | 0 | 1:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-mod_security | 0 | 0:2.9.1-19.GA.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-mod_security-debuginfo | 0 | 0:2.9.1-19.GA.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-mod_session | 0 | 0:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-mod_ssl | 0 | 1:2.4.23-120.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-openssl | 0 | 1:1.0.2h-13.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-openssl-debuginfo | 0 | 1:1.0.2h-13.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-openssl-devel | 0 | 1:1.0.2h-13.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-openssl-libs | 0 | 1:1.0.2h-13.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-openssl-perl | 0 | 1:1.0.2h-13.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-openssl-static | 0 | 1:1.0.2h-13.jbcs.el7 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-httpd | 0 | 0:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-httpd-debuginfo | 0 | 0:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-httpd-devel | 0 | 0:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-httpd-manual | 0 | 0:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-httpd-tools | 0 | 0:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-mod_ldap | 0 | 0:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-mod_proxy_html | 0 | 1:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-mod_session | 0 | 0:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el6 | httpd24-mod_ssl | 0 | 1:2.4.25-9.el6 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-httpd | 0 | 0:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-httpd-debuginfo | 0 | 0:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-httpd-devel | 0 | 0:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-httpd-manual | 0 | 0:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-httpd-tools | 0 | 0:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-mod_ldap | 0 | 0:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-mod_proxy_html | 0 | 1:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-mod_session | 0 | 0:2.4.25-9.el7 |
| Red Hat:rhel_software_collections:2::el7 | httpd24-mod_ssl | 0 | 1:2.4.25-9.el7 |
| SUSE:Linux Enterprise Server 12 SP2 | apache2 | 0 | 2.4.23-16.3 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | apache2 | 0 | 2.4.23-16.3 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | apache2 | 0 | 2.4.23-16.3 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | apache2 | 0 | 2.4.23-16.3 |
| openSUSE:Tumbleweed | apache2 | 0 | 2.4.49-1.1 |
Related vulnerabilities
- CVE-2025-53020 Late Release of Memory after Effective Lifetime vulnerability in Apache HTTP Server. Also affects apache2
- CVE-2025-49630 In certain proxy configurations, a denial of service attack against Apache HTTP Server… Also affects apache2
- CVE-2025-49812 In some mod_ssl configurations on Apache HTTP Server versions through to 2.4.63, an HTTP… Also affects apache2
- CVE-2024-43394 Server-Side Request Forgery (SSRF) in Apache HTTP Server on Windows allows to potentially… Also affects apache2
- CVE-2024-47252 Insufficient escaping of user-supplied data in mod_ssl in Apache HTTP Server 2.4.63 and… Also affects apache2
- CVE-2025-23048 In some mod_ssl configurations on Apache HTTP Server 2.4.35 through to 2.4.63, an access… Also affects apache2
- CVE-2024-42516 HTTP response splitting in the core of Apache HTTP Server allows an attacker who can… Also affects apache2
- CVE-2024-43204 SSRF in Apache HTTP Server with mod_proxy loaded allows an attacker to send outbound… Also affects apache2