Skip to content
OpenAdvisories
Medium · 6.5 Public exploit CVE-2018-1305 EUVD-2018-0634GHSA-jx6h-3fjx-cgv5

Apache Tomcat information exposure vulnerability

Published Feb 23, 2018 · Updated Oct 15, 2026 · Assigned by apache

Description

Security constraints defined by annotations of Servlets in Apache Tomcat 9.0.0.M1 to 9.0.4, 8.5.0 to 8.5.27, 8.0.0.RC1 to 8.0.49 and 7.0.0 to 7.0.84 were only applied once a Servlet had been loaded. Because security constraints defined in this way apply to the URL pattern and any URLs below that point, it was possible - depending on the order Servlets were loaded - for some security constraints not to be applied. This could have exposed resources to users who were not authorised to access them.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Tomcat Apache Tomcat 9.0.0.M1 to 9.0.4, 8.5.0 to 8.5.27, 8.0.0.RC1 to 8.0.49, 7.0.0 to 7.0.84 —

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.14-1+deb9u3 DSA-4281-1
Debian 8 tomcat7 7.0.56-3+really7.0.88-1 DLA-1400-1
Debian 8 tomcat8 8.0.14-1+deb8u12 DLA-1450-1
Debian 7 tomcat7 7.0.28-4+deb7u18 DLA-1301-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS tomcat8 8.5.30-1ubuntu1.2 USN-3665-1
Ubuntu 16.04 LTS tomcat8 8.0.32-1ubuntu1.6 USN-3665-1
Ubuntu 14.04 LTS tomcat7 7.0.52-1ubuntu0.14 USN-3665-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS tomcat7 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 7 tomcat +9 7.0.76-9.el7 RHSA-2019:2205
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 3 mod_cluster +2 1.3.8-2.Final_redhat_2.1.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat-native 1.2.8-11.redhat_11.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat-vault +2 1.1.6-1.Final_redhat_1.1.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-25.ep7.el6 RHSA-2018:0466
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-29.ep7.el6 RHSA-2018:0466
ReleasePackageFixed inAdvisory
SLES 12 SP3 tomcat 8.0.50-29.8.2 SUSE-SU-2018:0817-1
SLES 12 SP2 tomcat 8.0.50-29.8.2 SUSE-SU-2018:0817-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
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 tomcat 8.0.50-29.8.2 SUSE-SU-2018:0817-1
SLES for SAP 12 SP2 tomcat 8.0.50-29.8.2 SUSE-SU-2018:0817-1
SLES for SAP 12 SP1 tomcat 8.0.53-10.35.1 SUSE-SU-2018:3388-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 tomcat +9 7.0.76-10.amzn2.0.1 ALAS2-2020-1402

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 tomcat +9 7.0.76-9.el7 ELSA-2019-2205

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.

GitHub 1 repository

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.embed:tomcat-embed-core >= 9.0.0M1, < 9.0.5 9.0.5 GHSA-jx6h-3fjx-cgv5
Maven org.apache.tomcat.embed:tomcat-embed-core >= 8.5.0, < 8.5.28 8.5.28 GHSA-jx6h-3fjx-cgv5
Maven org.apache.tomcat.embed:tomcat-embed-core >= 7.0.0, < 7.0.85 7.0.85 GHSA-jx6h-3fjx-cgv5

Advisories 14

References