CVE-2018-1304
Description
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.
Severity
MEDIUM
CVSS v3
5.9
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N · source nvd
Exploit chance (EPSS)
17.070%
chance of exploitation in the next 30 days
higher than 97.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-10-15 |
Timeline
- 2018-02-28Published by the CNA20:00 UTC
- 2018-10-17GitHub advisory published (GHSA-6rxj-58jh-436r)231 days after publication
- 2026-10-15CISA SSVC decision recorded3151 days after publication
Exploit and advisory records
GitHub advisory GHSA-6rxj-58jh-436r, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.apache.tomcat.embed:tomcat-embed-core | from 7.0.0 before 7.0.86 | 7.0.86 |
| Maven org.apache.tomcat.embed:tomcat-embed-core | from 8.0.0 before 8.0.51 | 8.0.51 |
| Maven org.apache.tomcat.embed:tomcat-embed-core | from 8.5.0 before 8.5.28 | 8.5.28 |
| Maven org.apache.tomcat.embed:tomcat-embed-core | from 9.0.0 before 9.0.5 | 9.0.5 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache tomcat | from 7.0.0 through 7.0.84no fix listed8.0.0no fix listedfrom 8.0.0 through 8.0.49no fix listedfrom 8.5.0 through 8.5.27no fix listed9.0.0no fix listed(+1 more) | not listednot listednot listednot listednot listed |
| canonical ubuntu_linux | 14.04no fix listed16.04no fix listed17.10no fix listed18.04no fix listed | not listednot listednot listednot listed |
| debian debian_linux | 7.0no fix listed8.0no fix listed9.0no fix listed | not listednot listednot listed |
| oracle fusion_middleware | 12.2.1.3.0no fix listed | not listed |
| oracle hospitality_guest_access | 4.2.0no fix listed4.2.1no fix listed | not listednot listed |
| oracle micros_relate_crm_software | 11.4no fix listed | not listed |
| oracle secure_global_desktop | 5.3no fix listed5.4no fix listed | not listednot listed |
| redhat jboss_enterprise_application_platform | 6no fix listed6.4no fix listed | not listednot listed |
| redhat jboss_enterprise_web_server | 3.0.0no fix listed | not listed |
| redhat jboss_middleware | 1no fix listed | not listed |
References
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- https://security.netapp.com/advisory/ntap-20180706-0001/
- https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
- https://access.redhat.com/errata/RHSA-2018:0465
- https://access.redhat.com/errata/RHSA-2018:0466
- https://access.redhat.com/errata/RHSA-2018:1320
- https://access.redhat.com/errata/RHSA-2018:1447
- https://access.redhat.com/errata/RHSA-2018:1448
- https://access.redhat.com/errata/RHSA-2018:1449
- https://access.redhat.com/errata/RHSA-2018:1450
- https://access.redhat.com/errata/RHSA-2018:1451
- https://access.redhat.com/errata/RHSA-2018:2939
- https://access.redhat.com/errata/RHSA-2019:2205
- https://usn.ubuntu.com/3665-1/
- https://www.debian.org/security/2018/dsa-4281
- http://www.securityfocus.com/bid/103170
- http://www.securitytracker.com/id/1040427
- https://lists.apache.org/thread.html/1dd0a59c1295cc08ce4c9e7edae5ad2268acc9ba55adcefa0532e5ba%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/343558d982879bf88ec20dbf707f8c11255f8e219e81d45c4f8d0551%40%3Cdev.tomcat.apache.org%3E
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-1304'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-1304'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-1304'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-1304'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).