-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2016.2860
   Server memory can be exhausted and service denied when HTTP/2 is used
                              6 December 2016

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:          Apache HTTPD WebServer
Publisher:        The Apache Software Foundation
Operating System: Windows
                  UNIX variants (UNIX, Linux, OSX)
Impact/Access:    Denial of Service -- Remote/Unauthenticated
Resolution:       Patch/Upgrade
CVE Names:        CVE-2016-8740  

- --------------------------BEGIN INCLUDED TEXT--------------------

         Security Advisory - Apache Software Foundation
               Apache HTTPD WebServer  / httpd.apache.org

    Server memory can be exhausted and service denied when HTTP/2 is used

                 CVE-2016-8740

The Apache HTTPD web server (from 2.4.17-2.4.23) did not apply limitations
on request headers correctly when experimental module for the HTTP/2 
protocol is used to access a resource. 

The net result is that a the server allocates too much memory instead of denying
the request. This can lead to memory exhaustion of the server by a properly
crafted request.

Background:
- - -----------

Apache has limits on the number and length of request header fields. which
limits the amount of memory a client can allocate on the server for a request.

Version 2.4.17 of the Apache HTTP Server introduced an experimental feature:
mod_http2 for the HTTP/2 protocol (RFC7540, previous versions were known as 
Google SPDY).

This module is NOT compiled in by default -and- is not enabled by default, 
although some distribution may have chosen to do so.

It is generally needs to be enabled in the 'Protocols' line in httpd by 
adding 'h2' and/or 'h2c' to the 'http/1.1' only default. 

The default distributions of the Apache Software Foundation do not include 
this experimental feature. 

Details:
- - --------

- - From version 2.4.17, upto and including version 2.4.23 the server failed
to take the limitations on request memory use into account when providing 
access to a resource over HTTP/2. This issue has been fixed 
in version 2.4.23 (r1772576).

As a result - with a request using the HTTP/2 protocol a specially crafted
request can allocate memory on the server until it reaches its limit. This can
lead to denial of service for all requests against the server.

Impact:
- - -------

This can lead to denial of service for all server resources.
Versions affected: 
- - ------------------
All versions from  2.4.17 to  2.4.23. 

Resolution:
- - -----------

For a 2.4.23 version a patch is supplied. This will be included in the
next release. 

Mitigations and work arounds:
- - -----------------------------

As a temporary workaround - HTTP/2 can be disabled by changing
the configuration by removing h2 and h2c from the Protocols
line(s) in the configuration file. 

The resulting line should read:

		Protocols http/1.1

Credits and timeline
- - --------------------

The flaw was found and reported by Naveen Tiwari <naveen.tiwari@asu.edu> 
and CDF/SEFCOM at Arizona State University on 2016-11-22. The issue was 
resolved by Stefan Eissing and incorporated in the Apache repository,
ready for inclusion in the next release.

Apache would like to thank all involved for their help with this.

Patch against 2.4.23 release source:

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWEYq3Ix+lLeg9Ub1AQhQqxAApaII3PhyJLVHSx8riR+ZtJnMO1UWeO66
uK4eHy5Gi+VcngMlE3ZnVdgUl1A+njOidhoclG1Es5bVHDLhVFd2WtGXk/ctwOVG
93/v5tbaQu5YinfPAVn5xO6Q0fSTjqggK+9JuVhiv42+Ok3CEdHkE7FfKwENHrFg
la1ndcptz7PtHBmHb3v7oK4dce83nQFm5dvQBpxOIPIXYcfqCy+qfL0Rs8vl8NXr
ZblBhezisvLcjIodDNkAN1V0Qdyp1vpyiNsyf7hGd+TzlNoshMgAU+6my/6sS3eA
mg+lpeHUTFSEWJm0VGG/0iNgQe3qSFSbxfhGD3GKMOELy6cJXX9tH8I0NQ9mTTTK
AFCCYsSrqdwge/BE8WN7b90xRoNHQxBisl9lcC9D5uAdVJZP0/MsZnKfld4ZqQHA
LU42gsQLj/TKRlbphSfkZ/pxsKP/IKuhhF5rudR5Jqi+QQaLhRFk+CfaH9RUZiG2
nZ22m74o/CBkMfqE3mhHny8Ag07exkB+1iJwKg6was+j7AiXThk0SssuiAbRUnuN
KwVLrUo2OAkeoYrlNffNZA3ioE8CnOUUzVoE4g1HMhtCX6xu9ysd4iagHCJP7DCq
iRIGwjEy/QODAJjbnFCUgOKs/Gdr9QBAeQrsDygPLFlNng0DzUarAaJgU28E2KHz
g+Pb8QCVB0E=
=GZ6+
-----END PGP SIGNATURE-----