CVE-2018-1304
Apache Tomcat unauthorized access vulnerability
Reported by apache · Published February 28, 2018
tomcat is fixed in 9.0.4, 8.5.27, 8.0.49 and 1 more (Maven Central)
The URL pattern of "" (the empty string) which exactly maps to the context root was not correctly handled 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 when used as part of a security constraint definition. This caused the constraint to be ignored. It was, therefore, possible for unauthorised users to gain access to web application resources that should have been protected. Only security constraints with a URL pattern of the empty string were affected.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.tomcat:tomcat | Maven Central | 9.0.4, 8.5.27, 8.0.49, 7.0.84 |
| tomcat-jsp-2.2-api | Amazon Linux | 7.0.76-10.amzn2.0.1 |
| tomcat-jsvc | Amazon Linux | 7.0.76-10.amzn2.0.1 |
| tomcat-docs-webapp | Amazon Linux | 7.0.76-10.amzn2.0.1 |
| tomcat-admin-webapps | Amazon Linux | 7.0.76-10.amzn2.0.1 |
| tomcat-javadoc | Amazon Linux | 7.0.76-10.amzn2.0.1 |
| tomcat-lib | Amazon Linux | 7.0.76-10.amzn2.0.1 |
| tomcat8 | Ubuntu:16.04:LTS | 8.0.32-1ubuntu1.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 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 |
| amazon:2 | tomcat-jsp-2.2-api | 0 |
| Maven | org.apache.tomcat:tomcat | 9.0.0, 8.5.0, 8.0.0 |
| amazon:2 | tomcat-jsvc | 0 |
| amazon:2 | tomcat-docs-webapp | 0 |
| amazon:2 | tomcat-admin-webapps | 0 |
| amazon:2 | tomcat-javadoc | 0 |
| amazon:2 | tomcat-lib | 0 |
| 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 |
| amazon:2 | tomcat | 0 |
| amazon:2 | tomcat-el-2.2-api | 0 |
| amazon:2 | tomcat-webapps | 0 |
| amazon:2 | tomcat-servlet-3.0-api | 0 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 9.0.0, 8.5.0, 8.0.0 |
Timeline
- Feb 28, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jul 21, 2024 CVE Updated
- Mar 6, 2026 Distribution Patch (12 in total, the first dated here)
- Mar 6, 2026 Security Advisory (13 in total, the first dated here)
- Sep 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-1304
vulnetix vdb fixes CVE-2018-1304
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-1304/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2018:1448 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- 103170 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- RHSA-2018:1449 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:1450 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- DSA-4281 vendor-advisoryx_refsource_DEBIAN
- RHSA-2018:2939 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:0465 vendor-advisoryx_refsource_REDHAT
- USN-3665-1 vendor-advisoryx_refsource_UBUNTU
- 1040427 vdb-entryx_refsource_SECTRACK
- RHSA-2018:1320 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:1451 vendor-advisoryx_refsource_REDHAT
- [debian-lts-announce] 20180306 [SECURITY] [DLA 1301-1] tomcat7 security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- [debian-lts-announce] 20180729 [SECURITY] [DLA 1450-1] tomcat8 security update mailing-listx_refsource_MLIST
- RHSA-2018:0466 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:1447 vendor-advisoryx_refsource_REDHAT
- [debian-lts-announce] 20180627 [SECURITY] [DLA 1400-1] tomcat7 security update mailing-listx_refsource_MLIST
…and 39 more