CVE-2020-1935 Potential HTTP request smuggling in Apache Tomcat

Medium 4.8 Published Updated

Attackers can perform HTTP request smuggling via invalid headers when Tomcat is behind a specific misconfigured reverse proxy.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-1935?

CVE-2020-1935 is a medium-severity vulnerability in Apache Tomcat, published on 24 Feb 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In 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 the HTTP header parsing code used an approach to end-of-line parsing that allowed some invalid HTTP headers to be parsed as valid. This led to a possibility of HTTP Request Smuggling if Tomcat was located behind a reverse proxy that incorrectly handled the invalid Transfer-Encoding header in a particular manner. Such a reverse proxy is considered unlikely.

Weakness: CWE-444

Which versions are affected by CVE-2020-1935?

13 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core, tomcat and org.apache.tomcat:tomcat. It affects 20 products.

PackageAffectedFixed in
org.apache.tomcat.embed:tomcat-embed-core MavenAll versions7.0.100
org.apache.tomcat.embed:tomcat-embed-core MavenAll versions7.0.100
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.0.08.5.51
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.0.08.5.51
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.09.0.31
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.09.0.31
7 more packages
tomcat BitnamiFrom 7.0.07.0.100, 8.5.51, 9.0.31
org.apache.tomcat:tomcat MavenAll versions7.0.100
org.apache.tomcat:tomcat MavenAll versions7.0.100
org.apache.tomcat:tomcat MavenFrom 8.0.08.5.51
org.apache.tomcat:tomcat MavenFrom 8.0.08.5.51
org.apache.tomcat:tomcat MavenFrom 9.0.09.0.31
org.apache.tomcat:tomcat MavenFrom 9.0.09.0.31
Linux distribution packages (27)
tomcat Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-admin-webapps Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-docs-webapp Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-el-2.2-api Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-javadoc Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-jsp-2.2-api Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-jsvc Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-lib Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-servlet-3.0-api Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat-webapps Red Hat:enterprise_linux:7::clientAll versions0:7.0.76-16.el7_9
tomcat Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-admin-webapps Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-docs-webapp Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-el-2.2-api Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-javadoc Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-jsp-2.2-api Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-jsvc Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-lib Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat-webapps Red Hat:enterprise_linux:7::computenodeAll versions0:7.0.76-16.el7_9
tomcat Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9
tomcat-admin-webapps Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9
tomcat-docs-webapp Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9
tomcat-el-2.2-api Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9
tomcat-javadoc Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9
tomcat-jsp-2.2-api Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9
tomcat-jsvc Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9
tomcat-lib Red Hat:enterprise_linux:7::serverAll versions0:7.0.76-16.el7_9

Products include Apache Tomcat, Canonical Ubuntu Linux, Debian Debian Linux, Netapp Data Availability Services, Netapp Oncommand System Manager, Opensuse Leap and 14 more.

How do I fix CVE-2020-1935?

Upgrade org.apache.tomcat.embed:tomcat-embed-core to a fixed version for your release line: 7.0.100, 8.5.51 or 9.0.31.

Is CVE-2020-1935 being exploited?

There is no known exploitation of CVE-2020-1935 in the wild and no public exploit code.

All Apache Tomcat vulnerabilities

Sources

Also known as BIT-tomcat-2020-1935, DEBIAN-CVE-2020-1935, GHSA-qxf4-chvg-4r8r, RHSA-2020:5020, UBUNTU-CVE-2020-1935.

Is CVE-2020-1935 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free