PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-13935: 
Java vulnerability analysis and mitigation

Overview

The payload length in a WebSocket frame was not correctly validated in Apache Tomcat versions 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. This vulnerability was discovered and disclosed in July 2020, identified as CVE-2020-13935 (CVE, NVD).

Technical details

The vulnerability exists in the WebSocket frame processing where invalid payload lengths could trigger an infinite loop. The processRemainingHeader method in WsFrameBase.java expects the most significant bit of the payload length to be 0, otherwise, it gets taken as a negative number and is then endlessly processed (Sonatype).

Impact

When successfully exploited, multiple requests with invalid payload lengths could lead to a denial of service (DoS) condition. The vulnerability allows an attacker to cause high CPU usage that will not drop, effectively making the service unavailable (NVD).

Exploitability

The vulnerability is remotely exploitable without requiring authentication. An attacker can trigger the vulnerability by submitting payloads with invalid lengths during a WebSocket session. The original bug report demonstrated how it was possible to achieve a final "payloadLength" calculation of "-2" during a debug exercise, thereby triggering the infinite loop (Sonatype).

Mitigation and workarounds

Users should upgrade to the following fixed versions: Apache Tomcat 10.x should upgrade to 10.0.0-M7, 9.x should upgrade to 9.0.37, 8.x should upgrade to 8.5.57, and 7.x should upgrade to 7.0.105. The fix implemented checks for negative payload length values and terminates processing if detected (Sonatype).

Community reactions

Multiple vendors and organizations responded to this vulnerability by releasing security advisories and patches, including NetApp, Oracle, Ubuntu, and OpenSUSE (NetApp Advisory, Ubuntu Notice).

Additional resources


Source: This report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-111765HIGH7.5
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-http-client-android
NoYesOct 20, 2026
CVE-2026-102834HIGH7.5
  • Java logoJava
  • org.bytedeco:javacv
NoYesOct 16, 2026
CVE-2026-111763MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-parent
NoYesOct 20, 2026
CVE-2026-111762MEDIUM5.7
  • Java logoJava
  • org.a2aproject.sdk:a2a-java-sdk-transport-rest
NoYesOct 20, 2026
CVE-2026-113730MEDIUM5.6
  • Java logoJava
  • ognl:ognl
NoYesOct 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management