Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2020-1935 Overview
CVE-2020-1935 is an HTTP Request Smuggling vulnerability in Apache Tomcat affecting versions 9.0.0.M1 to 9.0.30, 8.5.0 to 8.5.50, and 7.0.0 to 7.0.99. The HTTP header parsing code used an end-of-line parsing approach that allowed some invalid HTTP headers to be parsed as valid. When Tomcat operates behind a reverse proxy that mishandles invalid Transfer-Encoding headers in a specific way, an attacker can smuggle HTTP requests through the proxy. The Apache Software Foundation classifies this issue under [CWE-444] Inconsistent Interpretation of HTTP Requests. The vulnerability requires a specific reverse proxy configuration to be exploitable, which the Tomcat project considers unlikely.
Critical Impact
An attacker behind a vulnerable reverse proxy can smuggle requests to bypass front-end security controls, poison caches, or hijack user sessions through the Tomcat back end.
Affected Products
- Apache Tomcat 9.0.0.M1 to 9.0.30, 8.5.0 to 8.5.50, and 7.0.0 to 7.0.99
- Debian Linux 8, 9, 10; Canonical Ubuntu Linux 16.04 LTS; openSUSE Leap 15.1
- Oracle products including Communications Element Manager, MySQL Enterprise Monitor, Siebel UI Framework, Agile PLM, Transportation Management, and Workload Manager; NetApp Data Availability Services and OnCommand System Manager
Discovery Timeline
- 2020-02-24 - CVE-2020-1935 published to NVD
- 2024-11-21 - Last updated in NVD database
Technical Details for CVE-2020-1935
Vulnerability Analysis
The vulnerability is an HTTP Request Smuggling flaw rooted in lenient end-of-line handling in Tomcat's HTTP header parser. Tomcat accepted certain byte sequences as valid header line terminators that strict RFC 7230 parsers would reject. When a reverse proxy in front of Tomcat parses these same bytes differently, the two systems disagree about where one request ends and the next begins. This desynchronization is the core primitive of request smuggling. An attacker exploits the disagreement by sending a single TCP request that the proxy sees as one request, while Tomcat interprets it as two. The smuggled second request is then prepended to whichever HTTP request the proxy forwards next on the reused back-end connection.
Root Cause
The root cause is non-strict parsing of header line endings in the Coyote HTTP connector. RFC 7230 mandates \r\n (CRLF) as the header line terminator, but the affected Tomcat versions accepted variants such as bare LF in contexts where they should be rejected. Combined with permissive handling of an invalid Transfer-Encoding header value, this allowed Tomcat and a non-conforming proxy to reach different conclusions about message framing.
Attack Vector
Exploitation is remote and unauthenticated but requires a specific upstream reverse proxy that mishandles the same invalid Transfer-Encoding header in a complementary way. An attacker crafts an HTTP request containing both a Content-Length header and a malformed Transfer-Encoding header, along with header lines terminated by the non-standard byte sequence. The proxy forwards the request using one framing interpretation; Tomcat consumes the body using a different one. The trailing bytes are queued as a new, attacker-controlled request that can poison cached responses, bypass authentication on subsequent victim requests, or capture session tokens. The Apache Tomcat project notes that the required proxy behavior is considered unlikely in practice.
No verified public exploit code is available. See the Apache Tomcat Announcement Thread for the official advisory.
Detection Methods for CVE-2020-1935
Indicators of Compromise
- HTTP requests containing both Content-Length and Transfer-Encoding headers arriving at the Tomcat connector.
- Header lines terminated by bare LF or other non-CRLF sequences in access or proxy logs.
- Anomalous request pairings where a victim user receives a response intended for another session or sees unexpected redirects to attacker-controlled paths.
Detection Strategies
- Inventory all Apache Tomcat instances and compare versions against the affected ranges (7.0.0–7.0.99, 8.5.0–8.5.50, 9.0.0.M1–9.0.30).
- Inspect reverse proxy and load balancer logs for malformed Transfer-Encoding values and duplicate framing headers on the same request.
- Run desync-focused scanners such as smuggling differential probes against the proxy-to-Tomcat path in a controlled test environment.
Monitoring Recommendations
- Enable verbose access logging on both the front-end proxy and Tomcat to correlate request counts per TCP connection.
- Alert on responses delivered to user agents that do not match their preceding requests, a classic sign of a smuggled request landing on a pooled back-end connection.
- Monitor for sudden spikes in 400-class responses from Tomcat following deployment of stricter parsing, which indicate clients or proxies that previously relied on the lax behavior.
How to Mitigate CVE-2020-1935
Immediate Actions Required
- Upgrade Apache Tomcat to 9.0.31, 8.5.51, or 7.0.100 or later, which enforce strict RFC 7230 header parsing.
- Apply distribution patches from Debian DSA-4673, Debian DSA-4680, Ubuntu USN-4448-1, and the openSUSE Security Announcement.
- For Oracle bundled products, apply the relevant Critical Patch Updates: July 2020, October 2020, and January 2021. NetApp users should consult the NetApp Security Advisory NTAP-20200327-0005.
Patch Information
The fix tightens header line parsing so that only RFC-compliant \r\n terminators are accepted, and invalid Transfer-Encoding headers are rejected outright. Fixed versions are Apache Tomcat 9.0.31, 8.5.51, and 7.0.100. See the Apache Tomcat Announcement Thread for release notes.
Workarounds
- Replace or reconfigure any reverse proxy known to forward invalid Transfer-Encoding headers without normalization.
- Configure the front-end proxy to reject requests containing both Content-Length and Transfer-Encoding headers, or to strip Transfer-Encoding when it is not chunked.
- Disable HTTP keep-alive on the proxy-to-Tomcat connection to prevent smuggled requests from being appended to a subsequent client request.
# Example: reject ambiguous framing at an NGINX reverse proxy
# Place inside the server or location block fronting Tomcat
if ($http_transfer_encoding != "") {
set $te_present 1;
}
if ($http_content_length != "") {
set $te_present "${te_present}1";
}
if ($te_present = "11") {
return 400;
}
proxy_http_version 1.1;
proxy_set_header Connection "";
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

