Skip to content
OpenAdvisories
High · 7.1 Public exploit CVE-2016-6816 EUVD-2022-4326GHSA-jc7p-5r39-9477

Improper Input Validation in Apache Tomcat

Published Mar 20, 2017 · Updated Nov 14, 2024 · Assigned by apache

Description

The code in Apache Tomcat 9.0.0.M1 to 9.0.0.M11, 8.5.0 to 8.5.6, 8.0.0.RC1 to 8.0.38, 7.0.0 to 7.0.72, and 6.0.0 to 6.0.47 that parsed the HTTP request line permitted invalid characters. This could be exploited, in conjunction with a proxy that also permitted the invalid characters but with a different interpretation, to inject data into the HTTP response. By manipulating the HTTP response the attacker could poison a web-cache, perform an XSS attack and/or obtain sensitive information from requests other then their own.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Tomcat 9.0.0.M1 to 9.0.0.M11, 8.5.0 to 8.5.6, 8.0.0.RC1 to 8.0.38, 7.0.0 to 7.0.72, 6.0.0 to 6.0.47, Earlier, unsupported versions may also be affected. —

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 8 tomcat7 7.0.56-3+deb8u6 DSA-3738-1
Debian 8 tomcat8 8.0.14-1+deb8u5 DSA-3739-1
Debian 7 tomcat6 6.0.45+dfsg-1~deb7u3 DLA-728-1
Debian 7 tomcat7 7.0.28-4+deb7u7 DLA-729-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS tomcat6 6.0.45+dfsg-1ubuntu0.1 USN-4557-1
Ubuntu 16.04 LTS tomcat7 7.0.68-1ubuntu0.3 —
Ubuntu 16.04 LTS tomcat8 8.0.32-1ubuntu1.3 USN-3177-1
Ubuntu 14.04 LTS tomcat7 7.0.52-1ubuntu0.8 USN-3177-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS tomcat6 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 7 tomcat +9 7.0.69-11.el7_3 RHSA-2017:0935
RHEL 6 tomcat6 +8 6.0.24-105.el6_8 RHSA-2017:0527
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 3 hibernate4-eap6 +4 4.2.23-1.Final_redhat_1.1.ep6.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 jbcs-httpd24-apache-commons-daemon 1.0.15-1.redhat_2.1.jbcs.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 jbcs-httpd24-apache-commons-daemon-jsvc 1:1.0.15-17.redhat_2.jbcs.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 jbcs-httpd24-runtime 1-3.jbcs.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 mod_cluster +2 1.3.5-2.Final_redhat_2.1.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat-native 1.2.8-9.redhat_9.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat-vault 1.0.8-9.Final_redhat_2.1.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-16.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-17.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss EAP 6 apache-cxf 2.7.18-5.SP4_redhat_1.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 hornetq 2.3.25-18.SP16_redhat_1.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 infinispan +4 5.2.20-1.Final_redhat_1.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 jboss-as-ee +59 7.5.13-2.Final_redhat_2.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 jboss-ec2-eap +1 7.5.13-1.Final_redhat_2.ep6.el6 RHSA-2017:0250
Red Hat JBoss EAP 6 jboss-ejb-client 1.0.38-1.Final_redhat_1.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 jboss-hal +1 2.5.15-1.Final_redhat_1.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 jbossas-domain +1 7.5.13-5.Final_redhat_2.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 jbossas-javadocs 7.5.13-3.Final_redhat_2.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 jbossweb 7.5.20-1.Final_redhat_1.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
Red Hat JBoss EAP 6 resteasy 2.3.16-1.Final_redhat_1.1.ep6.el5 RHSA-2017:0246, RHSA-2017:0245, RHSA-2017:0244
ReleasePackageFixed inAdvisory
SLES 12 SP2 tomcat 8.0.36-17.1 SUSE-SU-2016:3081-1
SLES 12 SP1 tomcat 8.0.32-10.13.2 SUSE-SU-2016:3079-1
SLES 12 tomcat 7.0.78-7.13.4 SUSE-SU-2017:1660-1
SLES 11 SP4 tomcat6 6.0.53-0.56.1 SUSE-SU-2017:1632-1
SLES 11 SP3 tomcat6 6.0.53-0.56.1 SUSE-SU-2017:1632-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP2 tomcat 8.0.36-17.1 SUSE-SU-2016:3081-1
SLES for SAP 12 SP1 tomcat 8.0.32-10.13.2 SUSE-SU-2016:3079-1
SLES for SAP 12 tomcat 7.0.78-7.13.4 SUSE-SU-2017:1660-1
SLES for SAP 11 SP4 tomcat6 6.0.53-0.56.1 SUSE-SU-2017:1632-1
SUSE Linux Enterprise Point of Sale 11 SP3 tomcat6 6.0.53-0.56.1 SUSE-SU-2017:1632-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 tomcat +9 7.0.69-11.el7_3 ELSA-2017-0935

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.

Exploit-DB 1

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-coyote >= 9.0.0.M1, < 9.0.0.M12 9.0.0.M12 GHSA-jc7p-5r39-9477
Maven org.apache.tomcat:tomcat-coyote >= 8.5.0, < 8.5.8 8.5.8 GHSA-jc7p-5r39-9477
Maven org.apache.tomcat:tomcat-coyote >= 8.0.0RC1, < 8.0.39 8.0.39 GHSA-jc7p-5r39-9477
Maven org.apache.tomcat:tomcat-coyote >= 7.0.0, < 7.0.73 7.0.73 GHSA-jc7p-5r39-9477
Maven org.apache.tomcat:tomcat-coyote >= 6.0.0, < 6.0.48 6.0.48 GHSA-jc7p-5r39-9477

Advisories 21

References