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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | tomcat7 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | tomcat +9 | 7.0.76-9.el7 | RHSA-2019:2205 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | tomcat +9 | 7.0.76-10.amzn2.0.1 | ALAS2-2020-1402 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
GitHub 1 repository
-
Pa55w0rd/CVE-2018-1305 ★ 6 · Apr 11, 2018
Apache Tomcat 安全绕过漏洞 Poc
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- RHSA-2018:0466 Red Hat Security Advisory: Red Hat JBoss Web Server 3.1.0 Service Pack 2 security update Red Hat Security Advisories (RHSA) · Sep 21, 2026
- RHSA-2019:2205 Red Hat Security Advisory: tomcat security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-3665-1 tomcat7, tomcat8 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-4281-1 tomcat8 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1450-1 tomcat8 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1400-1 tomcat7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1301-1 tomcat7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:3261-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3388-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0817-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1682 Oracle Retail Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 21, 2024
- WID-SEC-2024-0528 Dell Data Protection Advisor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 29, 2024
- ALAS2-2020-1402 Important: tomcat security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 28, 2021
- ELSA-2019-2205 Moderate: tomcat security, bug fix, and enhancement update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 13, 2019
References
- 103144 vdb-entry
- https://security.netapp.com/advisory/ntap-20180706-0001/
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- DSA-4281 vendor-advisory
- RHSA-2018:2939 vendor-advisory
- RHSA-2018:0465 vendor-advisory
- USN-3665-1 vendor-advisory
- RHSA-2018:1320 vendor-advisory
- [debian-lts-announce] 20180306 [SECURITY] [DLA 1301-1] tomcat7 security update mailing-list
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- https://lists.apache.org/thread.html/d3354bb0a4eda4acc0a66f3eb24a213fdb75d12c7d16060b23e65781%40%3Cannounce.tomcat.apache.org%3E
- [debian-lts-announce] 20180729 [SECURITY] [DLA 1450-1] tomcat8 security update mailing-list
- RHSA-2018:0466 vendor-advisory
- [debian-lts-announce] 20180627 [SECURITY] [DLA 1400-1] tomcat7 security update mailing-list
- 1040428 vdb-entry
- [tomcat-dev] 20190319 svn commit: r1855831 [24/30] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190319 svn commit: r1855831 [25/30] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190325 svn commit: r1856174 [22/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20190325 svn commit: r1856174 [23/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20190325 svn commit: r1856174 [24/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20190413 svn commit: r1857494 [17/20] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190413 svn commit: r1857496 [3/4] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190413 svn commit: r1857494 [16/20] - in /tomcat/site/trunk: ./ docs/ xdocs/ mailing-list
- [tomcat-dev] 20190415 svn commit: r1857582 [18/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20190415 svn commit: r1857582 [17/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ mailing-list
- [tomcat-dev] 20190415 svn commit: r1857582 [19/22] - in /tomcat/site/trunk: docs/ xdocs/stylesheets/ mailing-list
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- RHSA-2019:2205 vendor-advisory
- [tomcat-dev] 20200203 svn commit: r1873527 [24/30] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200203 svn commit: r1873527 [25/30] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [28/34] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [29/34] - /tomcat/site/trunk/docs/ mailing-list
- https://www.oracle.com/security-alerts/cpuapr2020.html