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

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

                               ESB-2021.2359
          Apache Tomcat Multiple Vulnerabilities (CVE-2021-30639,
                      CVE-2021-30640, CVE-2021-33037)
                               13 July 2021

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

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

Product:           Apache Tomcat
Publisher:         The Apache Software Foundation
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Denial of Service   -- Remote/Unauthenticated
                   Unauthorised Access -- Remote/Unauthenticated
                   Reduced Security    -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-33037 CVE-2021-30640 CVE-2021-30639

Original Bulletin: 
   https://tomcat.apache.org/security-10.html

Comment: This advisory references vulnerabilities in products which run on multiple platforms.
         It is recommended that administrators running Apache Tomcat check for an updated 
         version of the software for their operating system.
         
         This bulletin contains three (3) Apache security advisories.

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

CVE-2021-30639 Denial of Service

Severity: Important

Vendor: The Apache Software Foundation

Versions Affected:
Apache Tomcat 10.0.3 to 10.0.4
Apache Tomcat 9.0.44
Apache Tomcat 8.5.64

Description:
An error introduced as part of a change to improve error handling during 
non-blocking I/O meant that the error flag associated with the Request 
object was not reset between requests. This meant that once a 
non-blocking I/O error occurred, all future requests handled by that 
request object would fail. Users were able to trigger non-blocking I/O 
errors, e.g. by dropping a connection, thereby creating the possibility 
of triggering a DoS.
Applications that do not use non-blocking I/O are not exposed to this 
vulnerability.

Mitigation:
Users of the affected versions should apply one of the following
mitigations:
- - Upgrade to Apache Tomcat 10.0.5 or later
- - Upgrade to Apache Tomcat 9.0.45 or later
- - Upgrade to Apache Tomcat 8.5.65 or later

History:
2021-07-12 Original advisory

References:
[1] https://tomcat.apache.org/security-10.html
[2] https://tomcat.apache.org/security-9.html
[3] https://tomcat.apache.org/security-8.html

- ------------------------------------------------------------------------------

CVE-2021-30640 JNDI Realm Authentication Weakness

Severity: Low

Vendor: The Apache Software Foundation

Versions Affected:
Apache Tomcat 10.0.0-M1 to 10.0.5
Apache Tomcat 9.0.0.M1 to 9.0.45
Apache Tomcat 8.5.0 to 8.5.65
Apache Tomcat 7.0.0 to 7.0.108

Description:
Queries made by the JNDI Realm did not always correctly escape 
parameters. Parameter values could be sourced from user provided data 
(eg user names) as well as configuration data provided by an administrator.
In limited circumstances it was possible for users to authenticate using 
variations of their user name and/or to bypass some of the protection 
provided by the LockOut Realm.

Mitigation:
Users of the affected versions should apply one of the following
mitigations:
- - Upgrade to Apache Tomcat 10.0.6 or later
- - Upgrade to Apache Tomcat 9.0.46 or later
- - Upgrade to Apache Tomcat 8.5.66 or later
- - Upgrade to Apache Tomcat 7.0.109 or later

History:
2021-07-12 Original advisory

References:
[1] https://tomcat.apache.org/security-10.html
[2] https://tomcat.apache.org/security-9.html
[3] https://tomcat.apache.org/security-8.html
[4] https://tomcat.apache.org/security-7.html

- ------------------------------------------------------------------------------

CVE-2021-33037 HTTP request smuggling

Severity: Important

Vendor: The Apache Software Foundation

Versions Affected:
Apache Tomcat 10.0.0-M1 to 10.0.6
Apache Tomcat 9.0.0.M1 to 9.0.46
Apache Tomcat 8.5.0 to 8.5.66

Description:
Apache Tomcat did not correctly parse the HTTP transfer-encoding request 
header in some circumstances leading to the possibility to request 
smuggling when used with a reverse proxy. Specifically: Tomcat 
incorrectly ignored the transfer-encoding header if the client declared 
it would only accept an HTTP/1.0 response; Tomcat honoured the identify 
encoding; and Tomcat did not ensure that, if present, the chunked 
encoding was the final encoding.</p>

Mitigation:
Users of the affected versions should apply one of the following
mitigations:
- - Upgrade to Apache Tomcat 10.0.7 or later
- - Upgrade to Apache Tomcat 9.0.48 or later
- - Upgrade to Apache Tomcat 8.5.68 or later
Note that issue was fixed in 9.0.47 and 8.5.67 but the release votes for 
those versions did not pass.

History:
2021-07-12 Original advisory

References:
[1] https://tomcat.apache.org/security-10.html
[2] https://tomcat.apache.org/security-9.html
[3] https://tomcat.apache.org/security-8.html

- --------------------------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:

        https://www.auscert.org.au/bulletins/

===========================================================================
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

iQIVAwUBYOz2q+NLKJtyKPYoAQhaEw/+MTxcRY/wKx7f31N496mBGSqlDvh3PUOc
3M6eSVWHKGxlpV9tcwwdaYOFuJ0yOPa1/pTtdC+v8cxm6RsKzHJ2ImnOm8U8KwJa
mhXzOdroG5FczuY1e8Mswe0QIOGQxpeipgAgoY1CQIeGNDWu4ICyKH/GrifceWNX
7u2zAqBHYiZJ4QVdkc/mBc5/48L7po7Umfbd7IWLhMYKDJJ1yDpLnnDUuEgsNsTL
uT6YBpJKzya/cLRRR2rgnEKjuZS1dg9xOjUetJWC7pAFZko7XYlRDpHY1oWRP9oR
fde52FSG61WszmWvhIFqG2bzIFJKWKimJXWdvx8BDhMUj4TaCDD5n8e4A53fyYbq
+u5ZgQkMlidjvzVheZ5o901ns7pzoRaipG0zE6NI32AXcbOq2fgW1oXImMArMft7
Vh8v1jQNpS/3GUiKCyL7tWOo3Cmc1To8N0SlZh9VxnVzZnOzcZUXnr8ytTJ+dSgT
WxUbWq/hwR2deGds6JvXrBJpHxqE//qnvjU5S7PtH51u/CY3VjXD8WW0Ed44/xe+
tuCGJuKW4BwLtQP9Oto/2ypFPS+B/YOY3bleAFpcWqr2g653wFbMgmzdm/2CWDyc
gm0KOaQRozY25I6ybaYaU1YioDZPK/Ox9dOsLeroN9zr0V8gwxyo9PgkrR7tgWMA
DzbpGdQFIp8=
=9FSc
-----END PGP SIGNATURE-----