Skip to content
OpenAdvisories
Medium · 4.3 Scanner template Public exploit CVE-2018-11784 EUVD-2018-0512GHSA-5q99-f34m-67gc

Apache Tomcat Open Redirect vulnerability

Published Oct 4, 2018 · Updated Oct 15, 2026 · Assigned by apache

Description

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a redirect to a directory (e.g. redirecting to '/foo/' when the user requested '/foo') a specially crafted URL could be used to cause the redirect to be generated to any URI of the attackers choice.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Tomcat 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33, 7.0.23 to 7.0.90 —

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 9 tomcat8 8.5.50-0+deb9u1 DSA-4596-1
Debian 8 tomcat7 7.0.56-3+really7.0.91-1 DLA-1544-1
Debian 8 tomcat8 8.0.14-1+deb8u14 DLA-1545-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS tomcat8 8.5.39-1ubuntu1~18.04.1 —
Ubuntu 16.04 LTS tomcat8 8.0.32-1ubuntu1.8 USN-3787-1
Ubuntu 14.04 LTS tomcat7 7.0.52-1ubuntu0.16 USN-3787-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS tomcat7 No fix yet —
Ubuntu Pro 14.04 LTS tomcat6 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 apache-commons-collections 3.2.2-10.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 apache-commons-lang 2.6-21.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 bea-stax +1 1.2.0-16.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 glassfish-fastinfoset 1.2.13-9.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 glassfish-jaxb +3 2.2.11-11.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 glassfish-jaxb-api 2.2.12-8.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 jackson-core +4 2.9.8-1.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 jackson-module-jaxb-annotations 2.7.6-4.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 jakarta-commons-httpclient 1:3.1-28.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 javassist +1 3.18.1-8.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 pki-servlet-4.0-api +1 1:9.0.7-14.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 python-nss +2 1.0.1-10.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 relaxngDatatype 2011.1-7.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 resteasy 3.0.26-3.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 slf4j +1 1.7.25-4.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 stax-ex 1.7.7-8.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 velocity 1.7-24.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 xalan-j2 2.7.1-38.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 xerces-j2 2.11.0-34.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 xml-commons-apis 1.4.01-25.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 xml-commons-resolver 1.2-26.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 xmlstreambuffer 1.5.4-8.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 8 xsom 0-19.20110809svn.module+el8.0.0+3248+9d514f3b RHSA-2019:1529
RHEL 7 tomcat +9 7.0.76-9.el7_6 RHSA-2019:0485
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 5 jws5-tomcat +10 9.0.7-12.redhat_12.1.el6jws RHSA-2018:2868
Red Hat JBoss Web Server 3 tomcat-native 1.2.17-18.redhat_18.ep7.el6 RHSA-2019:0131
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-31.ep7.el6 RHSA-2019:0131
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-35.ep7.el6 RHSA-2019:0131

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 apache-commons-collections 3.2.2-10.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 apache-commons-lang 2.6-21.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 bea-stax-api 1.2.0-16.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 glassfish-fastinfoset 1.2.13-9.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 glassfish-jaxb-api 2.2.12-8.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 glassfish-jaxb-core +2 2.2.11-11.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 jackson-module-jaxb-annotations 2.7.6-4.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 jakarta-commons-httpclient 1:3.1-28.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 javassist +1 3.18.1-8.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 python3-nss +1 1.0.1-10.module_el8.5.0+150+5f0dbea0.alma ALSA-2019:1529
AlmaLinux 8 relaxngDatatype 2011.1-7.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 slf4j 1.7.25-4.module_el8.5.0+2577+9e95fe00 ALSA-2019:1529
AlmaLinux 8 slf4j-jdk14 1.7.25-4.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 stax-ex 1.7.7-8.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 velocity 1.7-24.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 xalan-j2 2.7.1-38.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 xerces-j2 2.11.0-34.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 xml-commons-apis 1.4.01-25.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 xml-commons-resolver 1.2-26.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 xmlstreambuffer 1.5.4-8.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529
AlmaLinux 8 xsom 0-19.20110809svn.module_el8.5.0+150+5f0dbea0 ALSA-2019:1529

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 apache-commons-collections 3.2.2-10.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 apache-commons-lang 2.6-21.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 bea-stax 1.2.0-16.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 glassfish-fastinfoset 1.2.13-9.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 glassfish-jaxb 2.2.11-11.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 glassfish-jaxb-api 2.2.12-8.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 jackson-module-jaxb-annotations 2.7.6-4.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 jakarta-commons-httpclient 1:3.1-28.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 javassist 3.18.1-8.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 python-nss 1.0.1-10.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 relaxngDatatype 2011.1-7.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 resteasy 3.0.26-3.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 slf4j 1.7.25-4.module+el8.3.0+74+855e3f5d RLSA-2019:1529
Rocky Linux 8 stax-ex 1.7.7-8.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 velocity 1.7-24.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 xalan-j2 2.7.1-38.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 xerces-j2 2.11.0-34.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 xml-commons-apis 1.4.01-25.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 xml-commons-resolver 1.2-26.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 xmlstreambuffer 1.5.4-8.module+el8.3.0+53+ea062990 RLSA-2019:1529
Rocky Linux 8 xsom 0-19.20110809svn.module+el8.3.0+53+ea062990 RLSA-2019:1529
ReleasePackageFixed inAdvisory
SLES 15 tomcat 9.0.12-3.8.3 SUSE-SU-2018:3968-1
SLES 12 SP3 tomcat 8.0.53-29.16.2 SUSE-SU-2018:3393-1
SLES 12 SP1 tomcat 8.0.53-10.35.1 SUSE-SU-2018:3388-1
SLES 12 tomcat 7.0.90-7.23.1 SUSE-SU-2018:3261-1
SLES 11 SP4 tomcat6 6.0.53-0.57.10.1 SUSE-SU-2018:3935-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 tomcat 8.0.53-29.16.2 SUSE-SU-2018:3393-1
SLES for SAP 12 SP1 tomcat 8.0.53-10.35.1 SUSE-SU-2018:3388-1
SLES for SAP 11 SP4 tomcat6 6.0.53-0.57.10.1 SUSE-SU-2018:3935-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tomcat 9.0.36-8.4 openSUSE-SU-2024:11468-1
openSUSE Tumbleweed tomcat10 10.1.14-1.1 openSUSE-SU-2024:13441-1
openSUSE Tumbleweed virtualbox 6.1.26-3.2 openSUSE-SU-2024:11501-1
openSUSE Leap 15.1 virtualbox 6.0.10-lp151.2.6.1 openSUSE-SU-2019:1814-1
openSUSE Leap 15.0 virtualbox 5.2.24-lp150.4.33.1 openSUSE-SU-2019:1814-1, openSUSE-SU-2019:1547-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 tomcat +9 7.0.76-9.amzn2 ALAS2-2019-1192

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 apache-commons-collections 3.2.2-10.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 apache-commons-lang 2.6-21.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 bea-stax-api 1.2.0-16.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 glassfish-fastinfoset 1.2.13-9.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 glassfish-jaxb-api 2.2.12-8.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 glassfish-jaxb-core +2 2.2.11-11.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 jackson-core +4 2.9.8-1.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 jackson-module-jaxb-annotations 2.7.6-4.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 jakarta-commons-httpclient 1:3.1-28.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 javassist +1 3.18.1-8.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 pki-servlet-4.0-api +1 1:9.0.7-14.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 python3-nss +1 1.0.1-10.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 relaxngDatatype 2011.1-7.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 resteasy 3.0.26-3.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 slf4j +1 1.7.25-4.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 stax-ex 1.7.7-8.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 velocity 1.7-24.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 xalan-j2 2.7.1-38.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 xerces-j2 2.11.0-34.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 xml-commons-apis 1.4.01-25.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 xml-commons-resolver 1.2-26.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 xmlstreambuffer 1.5.4-8.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 8 xsom 0-19.20110809svn.module+el8.0.0+5231+3e842911 ELSA-2019-1529
Oracle Linux 7 tomcat +9 7.0.76-9.el7_6 ELSA-2019-0485

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

GitHub 1 repository

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

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat.embed:tomcat-embed-core >= 8.5.0, < 8.5.34 8.5.34 GHSA-5q99-f34m-67gc
Maven org.apache.tomcat.embed:tomcat-embed-core >= 7.0.23, < 7.0.91 7.0.91 GHSA-5q99-f34m-67gc
Maven org.apache.tomcat.embed:tomcat-embed-core >= 9.0.0, < 9.0.12 9.0.12 GHSA-5q99-f34m-67gc

Advisories 28

References