Description Preview
Overview
This vulnerability (CVE-2020-13934) affects the HTTP/2 protocol implementation in Apache Tomcat. The issue occurs specifically during h2c protocol upgrades, where the application fails to properly release HTTP/1.1 processor resources after upgrading the connection to HTTP/2. Each upgrade request that isn't properly handled causes memory resources to be retained unnecessarily. Over time, as these unreleased resources accumulate, the server can experience memory exhaustion, resulting in an OutOfMemoryException and denial of service.
The vulnerability combines two Common Weakness Enumeration (CWE) types:
- CWE-476: NULL Pointer Dereference - The application attempts to access memory through a null pointer
- CWE-401: Missing Release of Memory after Effective Lifetime - The application fails to release memory after it has served its purpose, leading to a memory leak
An attacker can exploit this vulnerability by repeatedly sending h2c upgrade requests to the affected Tomcat server, gradually consuming its memory resources until the server becomes unresponsive.
Remediation
To address this vulnerability, administrators should take the following actions:
-
Update Apache Tomcat to a patched version:
- For Tomcat 10.x: Update to version 10.0.0-M7 or later
- For Tomcat 9.x: Update to version 9.0.37 or later
- For Tomcat 8.5.x: Update to version 8.5.57 or later
-
If immediate updating is not possible, consider one of these workarounds:
- Disable HTTP/2 support temporarily by removing the HTTP/2 protocol from the connector configuration
- Place a reverse proxy in front of Tomcat that doesn't support HTTP/2 protocol upgrades
- Implement rate limiting for connection requests to mitigate potential denial of service attacks
-
Monitor server memory usage closely for any signs of memory leaks or unusual resource consumption patterns
-
After applying patches, restart the Tomcat service to ensure the changes take effect
References
- Apache Tomcat Security Announcement: https://lists.apache.org/thread.html/r61f411cf82488d6ec213063fc15feeeb88e31b0ca9c29652ee4f962e%40%3Cannounce.tomcat.apache.org%3E
- Apache Tomcat Bug Report: https://lists.apache.org/thread.html/ra072b1f786e7d139e86f1d1145572e0ff71cef38a96d9c6f5362aac8%40%3Cdev.tomcat.apache.org%3E
- Debian Security Advisory: https://www.debian.org/security/2020/dsa-4727
- Ubuntu Security Notice: https://usn.ubuntu.com/4596-1/
- NetApp Security Advisory: https://security.netapp.com/advisory/ntap-20200724-0003/
- Oracle Critical Patch Updates:
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- openSUSE Security Announcements:
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00084.html
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00088.html
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Health Care & Social AssistanceHealth Care & Social Assistance
- Public AdministrationPublic Administration
- Finance and InsuranceFinance and Insurance
- Transportation & WarehousingTransportation & Warehousing
- Educational ServicesEducational Services
- UtilitiesUtilities
- Retail TradeRetail Trade
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Other Services (except Public Administration)Other Services (except Public Administration)
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- InformationInformation
- Accommodation & Food ServicesAccommodation & Food Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- MiningMining
- Wholesale TradeWholesale Trade
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- ConstructionConstruction
- Real Estate Rental & LeasingReal Estate Rental & Leasing