
CVE catalog
CVE-2018-1304
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 w
- Severity
- Medium · CVSS 6.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 17.07% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | tomcat9 | sid | 9.0.122-1 | not affected |
| Debian | tomcat9 | forky | 9.0.122-1 | not affected |
| Debian | tomcat9 | trixie | 9.0.95-1 | not affected |
| Debian | tomcat9 | bookworm | 9.0.70-2 | not affected |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Cpe | tomcat | Not reported | Not reported | unknown |
| Ubuntu | tomcat7 | 14.04 | 7.0.42-1 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.47-1 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.50-1 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.1 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.3 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.6 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.7 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.8 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.9 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.10 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.11 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.13 | vulnerable |
| Ubuntu | tomcat7 | 14.04 | 7.0.52-1ubuntu0.14 | fixed |
| Ubuntu | tomcat8 | 16.04 | 8.0.26-1 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.28-1 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.30-1 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1ubuntu1 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1ubuntu1.1 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1ubuntu1.2 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1ubuntu1.3 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1ubuntu1.4 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1ubuntu1.5 | vulnerable |
| Ubuntu | tomcat8 | 16.04 | 8.0.32-1ubuntu1.6 | fixed |
| Ubuntu | tomcat7 | pro | 7.0.64-1 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1ubuntu0.1 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1ubuntu0.3 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1ubuntu0.4 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1ubuntu0.4+esm1 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1ubuntu0.4+esm2 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1ubuntu0.4+esm3 | vulnerable |
| Ubuntu | tomcat7 | pro | 7.0.68-1ubuntu0.4+esm4 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | tomcat9 | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | tomcat9 | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | tomcat9 | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | tomcat9 | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Ubuntu | tomcat7 | deb | 14.04 | 7.0.52-1ubuntu0.14 | Not reported | UBUNTU-CVE-2018-1304 | Not reported |
| Ubuntu | tomcat8 | deb | 16.04 | 8.0.32-1ubuntu1.6 | Not reported | UBUNTU-CVE-2018-1304 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libtomcat9-java]Not affected
Source package: [tomcat9]
Details (2)
9.0.70-2· all · bookwormNot affected
nvd · tomcat9 · debian · bookworm
9.0.70-2· all · bookwormNot affected
nvd · tomcat9 · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2019_2205.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2018-1304]
- [https://osv.dev/vulnerability/DLA-1301-1]
- [https://osv.dev/vulnerability/DLA-1450-1]
- [https://osv.dev/vulnerability/DSA-4281-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-1304]
- [https://security-tracker.debian.org/tracker/CVE-2018-1304]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-1304.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0528.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]