Infinite Loop in Apache Tomcat
The payload length in a WebSocket frame was not correctly validated in Apache Tomcat 10.0.0-M1 to 10.0.0-M6, 9.0.0.M1 to 9.0.36, 8.5.0 to 8.5.56 and 7.0.27 to 7.0.104. Invalid payload lengths could trigger an infinite loop. Multiple requests with invalid payload lengths could lead to a denial of service.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.tomcat.embed:tomcat-embed-websocket | >= 7.0.27, < 7.0.105, >= 8.5.0, < 8.5.57, >= 9.0.0.M1, < 9.0.37, >= 10.0.0-M1, < 10.0.0-M7 | 7.0.105, 8.5.57, 9.0.37, 10.0.0-M7 |
| Java / Kotlin (Maven) | org.apache.tomcat:tomcat | >= 10.0.0-M1, < 10.0.0-M7, >= 9.0.0.M1, < 9.0.37, >= 8.5.0, < 8.5.57, >= 7.0.27, < 7.0.105 | 10.0.0-M7, 9.0.37, 8.5.57, 7.0.105 |
| Java / Kotlin (Maven) | org.apache.tomcat:tomcat-websocket | >= 10.0.0-M1, < 10.0.0-M7, >= 9.0.0.M1, < 9.0.37, >= 8.5.0, < 8.5.57, >= 7.0.27, < 7.0.105 | 10.0.0-M7, 9.0.37, 8.5.57, 7.0.105 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-13935
- https://github.com/apache/tomcat/commit/12d715676038efbf9c728af10163f8277fc019d5
- https://github.com/apache/tomcat/commit/1c1c77b0efb667cea80b532440b44cea1dc427c3
- https://github.com/apache/tomcat/commit/40fa74c74822711ab878079d0a69f7357926723d
- https://github.com/apache/tomcat/commit/4c04982870d6e730c38e21e58fb653b7cf723784
- https://github.com/apache/tomcat/commit/f9f75c14678b68633f79030ddf4ff827f014cc84
- https://tomcat.apache.org/security-9.html
- https://usn.ubuntu.com/4448-1
- https://usn.ubuntu.com/4596-1
- https://www.debian.org/security/2020/dsa-4727
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://tomcat.apache.org/security-8.html
- https://tomcat.apache.org/security-7.html
- https://tomcat.apache.org/security-10.html
- https://security.netapp.com/advisory/ntap-20200724-0003
- https://lists.debian.org/debian-lts-announce/2020/07/msg00017.html
- https://lists.apache.org/thread.html/rd48c72bd3255bda87564d4da3791517c074d94f8a701f93b85752651%40%3Cannounce.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r4e5d3c09f4dd2923191e972408b40fb8b42dbff0bc7904d44b651e50@%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r4e5d3c09f4dd2923191e972408b40fb8b42dbff0bc7904d44b651e50%40%3Cusers.tomcat.apache.org%3E
- https://kc.mcafee.com/corporate/index?page=content&id=SB10332
- https://github.com/apache/tomcat
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00084.html
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00088.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-835- Platform
- Java / Kotlin (Maven)
- Package
org.apache.tomcat.embed:tomcat-embed-websocket, org.apache.tomcat:tomcat, org.apache.tomcat:tomcat-websocket- Disclosed
- 08.02.2022
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-m7jv-hq7h-mq7c - CC BY 4.0
Vulnerability history: org.apache.tomcat.embed:tomcat-embed-websocket
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 02.2022 03.2024
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 1
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 0
-
Infinite Loop in Apache Tomcat this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.