Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2020-13935 BIT-tomcat-2020-13935EUVD-2022-1098GHSA-m7jv-hq7h-mq7c

Infinite Loop in Apache Tomcat

Published Jul 14, 2020 · Updated Oct 8, 2026 · Assigned by apache

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 products

VendorProductAffectedFixed
— Apache Tomcat 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, 7.0.27 to 7.0.104 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tomcat9 9.0.37-1 —
Debian 13 tomcat9 9.0.37-1 —
Debian 12 tomcat9 9.0.37-1 —
Debian 10 tomcat9 9.0.31-1~deb10u2 DSA-4727-1
Debian 9 tomcat8 8.5.54-0+deb9u3 DLA-2286-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS tomcat9 9.0.31-1ubuntu0.1 USN-4596-1
Ubuntu 16.04 LTS tomcat8 8.0.32-1ubuntu1.13 USN-4448-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS tomcat8 +1 No fix yet —
Ubuntu Pro 16.04 LTS tomcat7 No fix yet —
Ubuntu Pro 14.04 LTS tomcat7 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 7 tomcat +9 7.0.76-15.el7 RHSA-2020:4004
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 5 jws5-tomcat +9 9.0.30-5.redhat_6.1.el6jws RHSA-2020:3306
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-41.ep7.el6 RHSA-2020:3303
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-45.ep7.el6 RHSA-2020:3303
Red Hat JBoss EAP 6 jboss-as-ee +61 7.5.24-2.Final_redhat_00001.1.ep6.el6 RHSA-2022:5460, RHSA-2022:5459
Red Hat JBoss EAP 6 jbossas-javadocs 7.5.24-1.Final_redhat_00001.1.ep6.el6 RHSA-2022:5460, RHSA-2022:5459
Red Hat JBoss EAP 6 jbossts 1:4.17.45-2.Final_redhat_2.1.ep6.el6 RHSA-2022:5460, RHSA-2022:5459
Red Hat JBoss EAP 6 jbossweb 7.5.31-2.Final_redhat_2.1.ep6.el5 RHSA-2022:5460, RHSA-2022:5459, RHSA-2020:3383
ReleasePackageFixed inAdvisory
SLES 15 SP2 tomcat 9.0.36-3.6.1 SUSE-SU-2020:2047-1
SLES 15 SP1 tomcat 9.0.36-4.41.2 SUSE-SU-2020:2046-1
SLES 15 tomcat 9.0.36-3.65.2 SUSE-SU-2020:2045-1
SLES 12 SP5 tomcat 9.0.36-3.45.1 SUSE-SU-2026:1058-1, SUSE-SU-2020:2037-1
SLES 12 SP4 tomcat 9.0.36-3.45.1 SUSE-SU-2020:2037-1
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP3 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SLES 12 SP2 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SLES for SAP 15 tomcat 9.0.36-3.65.2 SUSE-SU-2020:2045-1
SLES for SAP 12 SP5 tomcat 9.0.36-3.45.1 SUSE-SU-2020:2037-1
SLES for SAP 12 SP4 tomcat 9.0.36-3.45.1 SUSE-SU-2020:2037-1
SLES for SAP 12 SP3 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SLES for SAP 12 SP2 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SLE HPC 15 tomcat 9.0.36-3.65.2 SUSE-SU-2020:2045-1
SUSE OpenStack Cloud Crowbar 9 tomcat 9.0.36-3.45.1 SUSE-SU-2020:2037-1
SUSE OpenStack Cloud Crowbar 8 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SUSE OpenStack Cloud 9 tomcat 9.0.36-3.45.1 SUSE-SU-2020:2037-1
SUSE OpenStack Cloud 8 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SUSE OpenStack Cloud 7 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SUSE HPE Helion OpenStack 8 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
SUSE Enterprise Storage 5 tomcat 8.0.53-29.37.1 SUSE-SU-2020:2611-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tomcat 9.0.43-8.1 openSUSE-SU-2024:12103-1
openSUSE Tumbleweed tomcat10 10.1.14-1.1 openSUSE-SU-2024:13441-1
openSUSE Leap 15.2 tomcat 9.0.36-lp152.2.4.1 openSUSE-SU-2020:1111-1
openSUSE Leap 15.1 tomcat 9.0.36-lp151.3.27.1 openSUSE-SU-2020:1102-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 tomcat +9 7.0.76-10.amzn2.0.4 ALAS2-2023-2047

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 tomcat +9 7.0.76-15.el7 ELSA-2020-4004

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat >= 10.0.0-M1, < 10.0.0-M7 10.0.0-M7 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat:tomcat >= 9.0.0.M1, < 9.0.37 9.0.37 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat:tomcat >= 8.5.0, < 8.5.57 8.5.57 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat:tomcat >= 7.0.27, < 7.0.105 7.0.105 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat:tomcat-websocket >= 10.0.0-M1, < 10.0.0-M7 10.0.0-M7 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat:tomcat-websocket >= 9.0.0.M1, < 9.0.37 9.0.37 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat:tomcat-websocket >= 8.5.0, < 8.5.57 8.5.57 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat:tomcat-websocket >= 7.0.27, < 7.0.105 7.0.105 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat.embed:tomcat-embed-websocket >= 7.0.27, < 7.0.105 7.0.105 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat.embed:tomcat-embed-websocket >= 8.5.0, < 8.5.57 8.5.57 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat.embed:tomcat-embed-websocket >= 9.0.0.M1, < 9.0.37 9.0.37 GHSA-m7jv-hq7h-mq7c
Maven org.apache.tomcat.embed:tomcat-embed-websocket >= 10.0.0-M1, < 10.0.0-M7 10.0.0-M7 GHSA-m7jv-hq7h-mq7c

Advisories 28

References