Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2018-1304

tomcat: Incorrect handling of empty string URL in security constraints can lead to unintended exposure of resources

Overview

Published
28 Feb 2018
Modified
15 Oct 2026
Medium CVE
1 Registry packages
115 OS packages
3 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

5.9 · MEDIUM

CVSS 3.0 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages · 1

Packages affected by CVE-2018-1304
EcosystemPackageVulnerableFixed in
Maven org.apache.tomcat.embed:tomcat-embed-core >=9.0.0, <9.0.5>=8.5.0, <8.5.28>=8.0.0, <8.0.51>=7.0.0, <7.0.86 9.0.58.5.288.0.517.0.86

Open a package to see all its vulnerabilities.

Operating systems · 16 fixes

Oracle Linux 1 release · 1 package

fixed 1
tomcat
Oracle Linux fixes for CVE-2018-1304
ReleasePackageFixed in
7 tomcat +9 7.0.76-9.el7

Red Hat 1 release · 14 packages

fixed 14
tomcat-vault tomcat-native mod-cluster codehaus-jackson hornetq lucene-solr +8
Red Hat fixes for CVE-2018-1304
ReleasePackageFixed inAdvisory
7 tomcat-vault +2 0:1.1.6-1.Final_redhat_1.1.ep7.el7 RHSA-2018:0466
7 tomcat-native 0:1.2.8-11.redhat_11.ep7.el7 RHSA-2018:0466
7 mod-cluster +2 0:1.3.8-2.Final_redhat_2.1.ep7.el7 RHSA-2018:0466
7 codehaus-jackson +4 0:1.9.9-12.redhat_6.1.ep6.el7 RHSA-2018:1448
7 hornetq 0:2.3.25-26.SP24_redhat_1.1.ep6.el7 RHSA-2018:1448
7 lucene-solr 0:3.6.2-8.redhat_9.1.ep6.el7 RHSA-2018:1448

8 more rows

debian 1 release · 1 package

fixed 1
tomcat8
debian fixes for CVE-2018-1304
ReleasePackageFixed in
9 tomcat8 8.5.14-1+deb9u3

References

Show all 76 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.