GHSA-m7jv-hq7h-mq7c BIT-tomcat-2020-13935 CVE-2020-13935
Infinite Loop in Apache Tomcat
- Severity
- 7.5 / 10
- High · CVSS 3.1
- Exploit chance (EPSS)
- 86.61%
- Chance of exploitation in the next 30 days. Higher than 99.74% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
- Fix
- Available
- 3 packages have a fixed version
Description
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 versions
Maven
| Package | Vulnerable | Fixed in |
|---|---|---|
| org.apache.tomcat.embed:tomcat-embed-websocket | >= 7.0.27, < 7.0.105 |
7.0.105 |
| org.apache.tomcat.embed:tomcat-embed-websocket | >= 8.5.0, < 8.5.57 |
8.5.57 |
| org.apache.tomcat.embed:tomcat-embed-websocket | >= 9.0.0.M1, < 9.0.37 |
9.0.37 |
| org.apache.tomcat.embed:tomcat-embed-websocket | >= 10.0.0-M1, < 10.0.0-M7 |
10.0.0-M7 |
| org.apache.tomcat:tomcat | >= 10.0.0-M1, < 10.0.0-M7 |
10.0.0-M7 |
| org.apache.tomcat:tomcat | >= 9.0.0.M1, < 9.0.37 |
9.0.37 |
| org.apache.tomcat:tomcat | >= 8.5.0, < 8.5.57 |
8.5.57 |
| org.apache.tomcat:tomcat | >= 7.0.27, < 7.0.105 |
7.0.105 |
| org.apache.tomcat:tomcat-websocket | >= 10.0.0-M1, < 10.0.0-M7 |
10.0.0-M7 |
| org.apache.tomcat:tomcat-websocket | >= 9.0.0.M1, < 9.0.37 |
9.0.37 |
| org.apache.tomcat:tomcat-websocket | >= 8.5.0, < 8.5.57 |
8.5.57 |
| org.apache.tomcat:tomcat-websocket | >= 7.0.27, < 7.0.105 |
7.0.105 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
org.apache.tomcat.embed:tomcat-embed-websocket Maven → 7.0.105
- maven
<dependency><groupId>org.apache.tomcat.embed</groupId><artifactId>tomcat-embed-websocket</artifactId><version>7.0.105</version></dependency>- gradle
implementation("org.apache.tomcat.embed:tomcat-embed-websocket:7.0.105")
org.apache.tomcat:tomcat Maven → 10.0.0-M7
- maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat</artifactId><version>10.0.0-M7</version></dependency>- gradle
implementation("org.apache.tomcat:tomcat:10.0.0-M7")
org.apache.tomcat:tomcat-websocket Maven → 10.0.0-M7
- maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat-websocket</artifactId><version>10.0.0-M7</version></dependency>- gradle
implementation("org.apache.tomcat:tomcat-websocket:10.0.0-M7")
Severity breakdown
CVSS 3.1 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Weakness
CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
References
Advisories
Packages
Other links
- github.com/apache/tomcat/commit/12d715676038efbf9c728af10163f8277fc019d5
- github.com/apache/tomcat/commit/1c1c77b0efb667cea80b532440b44cea1dc427c3
- github.com/apache/tomcat/commit/40fa74c74822711ab878079d0a69f7357926723d
- github.com/apache/tomcat/commit/4c04982870d6e730c38e21e58fb653b7cf723784
- github.com/apache/tomcat/commit/f9f75c14678b68633f79030ddf4ff827f014cc84
- tomcat.apache.org/security-9.html
- usn.ubuntu.com/4448-1
- usn.ubuntu.com/4596-1
- debian.org/security/2020/dsa-4727
- oracle.com//security-alerts/cpujul2021.html
- oracle.com/security-alerts/cpuApr2021.html
- oracle.com/security-alerts/cpuapr2022.html
- oracle.com/security-alerts/cpujan2021.html
- oracle.com/security-alerts/cpujan2022.html
- oracle.com/security-alerts/cpuoct2020.html
- oracle.com/security-alerts/cpuoct2021.html
- tomcat.apache.org/security-8.html
- tomcat.apache.org/security-7.html
- tomcat.apache.org/security-10.html
- security.netapp.com/advisory/ntap-20200724-0003
- lists.debian.org/debian-lts-announce/2020/07/msg00017.html
- lists.apache.org/thread.html/rd48c72bd3255bda87564d4da3791517c074d94f8a701f93b8575265…
- lists.apache.org/thread.html/r4e5d3c09f4dd2923191e972408b40fb8b42dbff0bc7904d44b651e5…
- lists.apache.org/thread.html/r4e5d3c09f4dd2923191e972408b40fb8b42dbff0bc7904d44b651e5…
- kc.mcafee.com/corporate/index
- lists.opensuse.org/opensuse-security-announce/2020-07/msg00084.html
- lists.opensuse.org/opensuse-security-announce/2020-07/msg00088.html
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-69r9-qgr7-g2wj Apache Tomcat Missing Encryption of Sensitive Data vulnerability | High Known exploited | Also affects org.apache.tomcat:tomcat |
| GHSA-h3x4-894j-xpx5 Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-9xv2-5v5q-p794 Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-gcx9-497g-6cp6 Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-5m62-pw8w-7w9f Apache Tomcat - Security constraints not correctly applied | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-9m89-8frq-c98c Apache Tomcat - AJP secret compared in non-constant time | Low | Also affects org.apache.tomcat:tomcat |
| GHSA-5mp6-jrq3-r938 Apache Tomcat: LockOutRealm treats user names as case-sensitive | High | Also affects org.apache.tomcat:tomcat |
| GHSA-h6fc-48rj-7qqh Apache Tomcat - Digest authenticator will authenticate any unknown user | Critical | Also affects org.apache.tomcat:tomcat |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor